NetBSD-Bugs archive

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

Re: bin/37860: sort -n sorts 0 after 0.1



The following reply was made to PR bin/37860; it has been noted by GNATS.

From: alex%cyathus.de@localhost (Alexander Becher)
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/37860: sort -n sorts 0 after 0.1
Date: Tue, 29 Jan 2008 21:11:46 +0100

 * Alan Barrett:
 > On Thu, 24 Jan 2008, Alexander Becher wrote:
 > > Sorting lines that contain only numbers between 0 and 1 with the -n
 > > option leads lines that contain only "0" to be sorted after lines that
 > > start with "0.0". Obviously, 0.01 < 0 < 0.2 is wrong, but that's the
 > > resulting sort order.
 > 
 > Please try the patch in PR 30504.
 
 Works. 
 
 > I really should commit that some time.
 
 You should. It would close many sort-related PRs. And prevent new ones.
 
 Regards,
 Alexander
 
 -- 
 PGP key available
 



Home | Main Index | Thread Index | Old Index