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.
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to