GNU bug report logs - #19938
possibly sort bug

Previous Next

Package: coreutils;

Reported by: Tomáš Kyselica <tomas.kyselica <at> gmail.com>

Date: Tue, 24 Feb 2015 17:53:05 UTC

Severity: normal

Tags: notabug

Merged with 19936, 19937

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Kyselica <tomas.kyselica <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Re: possibly sort bug
Date: Tue, 24 Feb 2015 10:58:32 +0100
[Message part 1 (text/plain, inline)]
ok, finally i found out:
cat all_nouns.txt | cut -f1,3 | sort -t$'\t' -k2,2 -k1,1 works...
problem was in specifying tabulator as delimiter

On Tue, Feb 24, 2015 at 9:32 AM, Tomáš Kyselica <tomas.kyselica <at> gmail.com>
wrote:

> sorry,
>
> also --stable was used for sort.
>
> On Tue, Feb 24, 2015 at 9:30 AM, Tomáš Kyselica <tomas.kyselica <at> gmail.com>
> wrote:
>
>> Dear Sir/Madam,
>>
>>   I have issuing this command:
>>
>> cat all_nouns.txt | cut -f1,3 | sort -t\t -k2,1
>>
>> I expected that second column will be sorted A1,A2,B1,B2,C1,C2, but it is
>> only almost true; at the end of file, I see:
>> C2
>> ... [many C2]
>> C2
>> B1
>> B1
>> B2
>> B2
>> A2
>> C1
>> A2
>> which is not sorted.
>> Attaching the file.
>>
>> Regards
>> Tomas Kyselica
>>
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.