GNU bug report logs - #19937
possibly sort bug

Previous Next

Package: coreutils;

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

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

Severity: normal

Tags: notabug

Merged with 19936, 19938

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tomáš Kyselica <tomas.kyselica <at> gmail.com>
To: 19937 <at> debbugs.gnu.org
Subject: bug#19937: possibly sort bug
Date: Tue, 24 Feb 2015 10:01:15 +0100
[Message part 1 (text/plain, inline)]
same problem with:
sort all_nouns -t\t -k3,3 --stable
I think regardless of --stable it should sort third column so that all A1
are first (does not care how other columns are sorted), then all A2, all
B1, all B2, all C1, all C2,
but there are still problems at the end of sorted output.
I have updated via sudo apt-get update all packages, does not help.


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.