I have a file trial.txt in which I want to sort its fourth column only without changing the order of the other colums . My file contents is like this.
A user 9 12 ab    
B user 2 9 cd    
C user 5 13 da
I want my output to look like this
A user 9 13 ab    
B user 2  12 cd    
C user 5  9 da
I had tried this.
sort -k 4 trial.txt
but it is not giving the output as expected.
 
     
     
    