This question already has an answer here:
I have a file in this format which I want to sort
RNU2-46P 0 RNU2-2P 9 RNU2-63P 5 RNU2-36P 6 RNU2-56P 8 RNU2-17P 0
I want to sort it on column 1 and get this output
RNU2-2P 9 RNU2-17P 0 RNU2-36P 6 RNU2-46P 0 RNU2-56P 8 RNU2-63P 5
I tried the sort command but it is not sorting the way I want. Help!!