[EMAIL PROTECTED] wrote:
> Package: coreutils
> Version: 5.97-5.3
> Severity: normal
>
> sort -g foo
>
> where foo contains
...
> returns
>
> 1.286960e-04
> 3.068035e-08
> 3.093938e-02
> 3.504910e-12
> 3.576523e-13
> 4.161794e-22
> 5.129078e-02
> 7.579623e-02
>
> Numbers in scientific notation are sorted by prefix, what is not correct.
> This happens when [EMAIL PROTECTED] but not when LANG is unset.

Thanks for the report, but that's the way sort -g is documented to work.
To get the ordering you want in your locale, convert each "." to ",".
E.g., this should do what you want:

  sed 's/\./,/g' foo | sort -g


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to