Redhat linux, file to sort - "aaa":
4;AAA;456
3;BBB;567
2;AAA;123
1;BBB;234
5;AAA;000
sort only by second field - command:
sort -t ";" -k2,2 aaa
output is:
2;AAA;123
4;AAA;456
5;AAA;000
1;BBB;234
3;BBB;567
In my opinion output should be:
4;AAA;456
2;AAA;123
5;AAA;000
3;BBB;567
1;BBB;234
Error in sort?