bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in sort 2.0.14


From: Lukas Michelbacher
Subject: bug in sort 2.0.14
Date: Sat, 3 Feb 2007 14:32:10 +0100 (CET)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]