bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort


From: Jim Meyering
Subject: Re: sort
Date: Wed, 23 Jun 2004 10:05:43 +0200

Markus Cristinziani <address@hidden> wrote:
> I am using sort (coreutils) 4.5.3 October 2002 SORT(1)
>
> The output of my |sort -n| command is
>
> -3.32561
> -2.98581
> -2.93602e-05
> -2.9352e-05
> -2.91037
> -2.74732
>
> the numbers with exponent appear not to be properly sorted.

With `-n', you're sorting only the integer values before the `.'s.
To sort floating point numbers, use the -g (--general-numeric-sort) option.




reply via email to

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