I am trying to sort the contents in my text file using the command
:1,$sort
This results in lines arranged in order based on the starting character - symbols, capital letters and then small letters
Now if i use
:1,$!sort
I get a different order which does not seem to make any sense. Everything looks mixed up.
So what is the role of the !
command here? Why does it mess up the entire sorting behaviour?According to https://stackoverflow.com/a/1220118/2105986, it is supposed to be a filter operator.