I have a file I would like to sort by 1 field, while otherwise leaving the order alone. For example if the original file is:
2 B
1 B
2 A
3 A
4 D
3 D
I would like it sorted as:
2 A
3 A
2 B
1 B
4 D
3 D
But no matter how I try to limit the sorting field of "sort", within the indicated sort it will always sort by the rest of the line:
2 A
3 A
1 B
2 B
3 D
4 D
Is there some trick I am missing that will limit the sort to only the indicated fields, and preserve the original order otherwise? Or will I have to do it the hard way?
2 B
1 B
2 A
3 A
4 D
3 D
I would like it sorted as:
2 A
3 A
2 B
1 B
4 D
3 D
But no matter how I try to limit the sorting field of "sort", within the indicated sort it will always sort by the rest of the line:
2 A
3 A
1 B
2 B
3 D
4 D
Is there some trick I am missing that will limit the sort to only the indicated fields, and preserve the original order otherwise? Or will I have to do it the hard way?