bug-coreutils
[Top][All Lists]
Advanced

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

Re: numeric sort gives incorrect result with comparing different formatt


From: Andreas Schwab
Subject: Re: numeric sort gives incorrect result with comparing different formatted floating point numbers
Date: Tue, 02 Mar 2004 10:54:04 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Simon Oosthoek <address@hidden> writes:

> address@hidden on 2004-03-01 11:29 AM      Long Description
> When sorting the data below (which is already sorted by sort) using "sort
> -n" which should numerically sort on the first column (equiv to sort -n 
> -k 1)
> gives inconsistent output w.r.t numbers with missing digits.

If you want to sort on the first colum, you should use -k1,1.  Otherwise
the whole line is taking part in the sorting.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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