the file word-count.txt
contains the text:
10
2
19
22
6
why does typing the command
sort -n word-count.txt > word-count.txt
wipe the memory of the file?
I understand that there are other ways of saving the sorted list of numbers into a file but why is it when I save it into the file where the numbers are contained suddenly there is no data there?