[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: numerical sort
From: |
Gerhard Heinzel |
Subject: |
Re: numerical sort |
Date: |
Mon, 28 Jan 2002 09:45:09 +0100 (CET) |
On Mon, 28 Jan 2002, Jim Meyering wrote:
> Gerhard Heinzel <address@hidden> wrote:
> > I fail to sort a simple ASCII file
> > that contains two columns of numbers
> > into proper numerical order (first column)
> > with gnu sort version 2.0.10:
> >
> > Here is what happens with "sort -n":
> > -60.6304 -126.723
> > -6.00392 -104.131
> > -59.6326 -126.578
>
> Thanks for the report, but I can't reproduce the above problem.
> Using sort -n works for me with the latest test release: 2.0.20
> ftp://alpha.gnu.org/gnu/fetish/textutils-2.0.20.tar.gz
Thanks, I have now installed 2.0.20 and it works fine.
> Using -d isn't very useful when sorting numbers.
>
> > Here is what happens with "sort -d":
> > -0.05 -0.00784905
My mistake, I meant to use "-g".
With best greetings
Gerhard
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Gerhard Heinzel e-mail: address@hidden
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Inst.)
Institut Hannover, Callinstrasse 38, D-30167 Hannover, Germany
Tel +49-(0)511-762-2788, Fax +49-(0)511-762-2784
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --