bug-coreutils
[Top][All Lists]
Advanced

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

possible bug in sort


From: John Novatnack
Subject: possible bug in sort
Date: Fri, 8 Dec 2006 12:45:11 -0500

I ran across strange behavior of the Unix sort command. Consider the
following example. First what I would call a correct sort.

$ sort -n
0.1 2
0.1 3
0.1 1
0.1 2


0.1 1
0.1 2
0.1 2
0.1 3

But now see what happens when I add a trailing zero.

$ sort -n
0.1 2
0.1 3
0.1 1
0.10 2


0.10 2
0.1 1
0.1 2
0.1 3

I am not sure if this constitutes a bug or not, but it is certainly a
counter intuitive numerical sort, IMO.


reply via email to

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