Can you guys pls take a look at this.
I need to sort this list of numbers as follows:
2nd col first, then 1st col, then 3rd col, all in reverse (highest to lowest).
I'm doing this:
sort -k 2,2nr -k 1,1nr -k 3,3gr
but, as you see, the 3rd col does not get sorted properly.
Any idea about what's going on?
I'm highlighting in bold the two items not properly sorted:[FONT=Courier New]
1.556393 10 +0.31
1.556393 10 +0.11
0.463242 10 +0.00
0.559132 9 -0.00
0.559132 9 -0.05
0.463242 9 -0.01
0.309703 9 -0.11
0.213813 9 -0.12
0.137100 9 -0.23
0.137100 9 -0.25
2.476828 1 +0.02
1.556393 1 +0.14
1.556393 1 +0.10
1.556393 1 +0.04
1.556393 1 +0.03
1.556393 1 +0.02
1.556393 1 +0.02
1.556393 1 +0.02
1.556393 1 +0.01
0.559132 1 +0.26
0.559132 1 +0.23
0.559132 1 +0.15
0.559132 1 +0.14
0.559132 1 +0.11
0.559132 1 +0.05
0.559132 1 +0.04
0.559132 1 +0.03
1.556387 0 -0.02
1.556387 0 -0.12
1.556385 0 -0.02
1.556385 0 -0.02
1.556385 0 -0.02
1.556385 0 -0.06
1.556383 0 -0.24
0.712443 0 -0.01
0.635841 0 -0.09
0.559132 0 -0.01
0.559132 0 -0.01
0.559131 0 -0.00
0.559129 0 -0.04
0.559123 0 -0.08
0.463242 0 -0.00
0.463232 0 -0.07
0.213811 0 -0.00
[SIZE=1]---------- Post updated at 03:28 PM ---------- Previous update was at 03:25 PM ----------
Sorry... My mistake. I see the 1st col is not what I initially read.
It's all ok!
Thansk though.