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



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.  I really should commit that some
time.

--apb (Alan Barrett)



Home | Main Index | Thread Index | Old Index