Hello,

is this a bug?

input:

action  non-intervention        95.285097237109 0.000164853280580284
action  punch   95.8254856329854        0.000439608748214089
action  reasons 95.2056821327679        0.00175843499285636

output after sort command 'sort -r -g -k 3,3 <input>':

action  reasons 95.2056821327679        0.00175843499285636
action  punch   95.8254856329854        0.000439608748214089
action  non-intervention        95.285097237109 0.000164853280580284

The number in the middle is greater than the one in the first line of the output. That's wrong because the file should be sorted by the column that contains the numbers.
I'd like to add that if the second column is modified,

new input:

action  punch        95.285097237109 0.000164853280580284
action  punch   95.8254856329854        0.000439608748214089
action  punch 95.2056821327679        0.00175843499285636

the output has the desired form:

action  punch   95.8254856329854        0.000439608748214089
action  punch        95.285097237109 0.000164853280580284
action  punch 95.2056821327679        0.00175843499285636

Regards

Lukas Michelbacher


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to