bug-coreutils
[Top][All Lists]
Advanced

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

Re: Sort order bug in GNU sort


From: Pádraig Brady
Subject: Re: Sort order bug in GNU sort
Date: Fri, 30 Oct 2009 00:21:56 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Luke Hutchison wrote:
> Hi,
> 
> The following is the output of GNU sort (without any switches) on an
> unsorted file.  Numerous errors (of the same variety) seem present in the
> ordering.  I am using coreutils-7.2-4.fc11.x86_64.  Problems are shown in
> red.

You need to specify the sort command you used.
Does this sort your data correctly?

sort -t, -k1,1V

> Additionally, there probably needs to be a switch added to sort that uses
> the entire line as the sort key,

It does that by default

> not blank-to-non-blank transition

Note also the 'b' option.

cheers,
Pádraig.




reply via email to

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