From unknown Sat Sep 20 09:29:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19938: possibly sort bug Resent-From: =?UTF-8?Q?Tom=C3=A1=C5=A1?= Kyselica Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 24 Feb 2015 17:53:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19938 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 19938@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142480036225175 (code B ref -1); Tue, 24 Feb 2015 17:53:05 +0000 Received: (at submit) by debbugs.gnu.org; 24 Feb 2015 17:52:42 +0000 Received: from localhost ([127.0.0.1]:56948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQJez-0006Xu-NE for submit@debbugs.gnu.org; Tue, 24 Feb 2015 12:52:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33388) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQCGv-0001mi-Gr for submit@debbugs.gnu.org; Tue, 24 Feb 2015 04:59:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQCGp-0005ks-IU for submit@debbugs.gnu.org; Tue, 24 Feb 2015 04:59:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_20,DEAR_SOMETHING, FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQCGp-0005ke-FY for submit@debbugs.gnu.org; Tue, 24 Feb 2015 04:59:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQCGo-00022D-Nz for bug-coreutils@gnu.org; Tue, 24 Feb 2015 04:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQCGn-0005ih-4E for bug-coreutils@gnu.org; Tue, 24 Feb 2015 04:59:14 -0500 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:34475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQCGm-0005iT-VW for bug-coreutils@gnu.org; Tue, 24 Feb 2015 04:59:13 -0500 Received: by mail-ob0-f175.google.com with SMTP id va2so42337989obc.6 for ; Tue, 24 Feb 2015 01:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YEgiKbrVISq3rnBLkxq9AFWnldiabFI32sr/oRjKHEY=; b=iCyhGuw/fJ5MTkJiY8kkN4dzmb4RX9WVUzbI3ZLc8+5UFZhQJcRhEATENoAkgf4IC9 yKpBzxoCR2+QD60tJ4csgb52U9PF82WgfhLLxVsdh3jHve87cZYCQJbqiC7suHayYTaL +Wlb9G7O8BUMqpl4IADm8PZ0180CIaKubJR4f7Ofpf18UbQRKiqiAoEp4ifU2p7y32LH rH/GgTHaDN97sLPTOM5vPzqMvi02mTgybEwAob1/s4E/A04EuaO1HkwdmdjSNWCXfCDV dRkQgCxctrqvhjqWucbDIAz754xPwaT2ICqfkwd+2UkdSXC5flnIMbnndlZfK773ko/b 1YPQ== X-Received: by 10.182.28.102 with SMTP id a6mr10590430obh.69.1424771952332; Tue, 24 Feb 2015 01:59:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.50.131 with HTTP; Tue, 24 Feb 2015 01:58:32 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Tom=C3=A1=C5=A1?= Kyselica Date: Tue, 24 Feb 2015 10:58:32 +0100 Message-ID: Content-Type: multipart/alternative; boundary=089e0149c4ce1ad61d050fd29243 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Tue, 24 Feb 2015 12:52:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --089e0149c4ce1ad61d050fd29243 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A1=C5=A1 Kyselica wrote: > sorry, > > also --stable was used for sort. > > On Tue, Feb 24, 2015 at 9:30 AM, Tom=C3=A1=C5=A1 Kyselica > 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 i= s >> 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 >> > > --089e0149c4ce1ad61d050fd29243 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
ok, finally i found out:
cat all_nouns.= txt | cut -f1,3 | sort -t$'\t' -k2,2 -k1,1 works...
proble= m was in specifying tabulator as delimiter

On Tue, Feb 24, 2015 at 9:32 AM, Tom=C3= =A1=C5=A1 Kyselica <tomas.kyselica@gmail.com> wrote:<= br>
sorry,

also --stable was used for sort.

On Tue, F= eb 24, 2015 at 9:30 AM, Tom=C3=A1=C5=A1 Kyselica <tomas.kyselica@gm= ail.com> wrote:
Dear Sir/Madam,

=C2=A0 I have issuin= g 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
B= 1
B1
B2
B2
A2
C1
A2
which is not sorted.
Attaching the file.

Regards
Tomas Kyseli= ca


--089e0149c4ce1ad61d050fd29243-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 24 13:30:36 2015 Received: (at control) by debbugs.gnu.org; 24 Feb 2015 18:30:36 +0000 Received: from localhost ([127.0.0.1]:56988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQKFg-0000RZ-2D for submit@debbugs.gnu.org; Tue, 24 Feb 2015 13:30:36 -0500 Received: from mail1.vodafone.ie ([213.233.128.43]:59159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQKFd-0000RH-1W for control@debbugs.gnu.org; Tue, 24 Feb 2015 13:30:34 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AooGAAvD7FRtTnHG/2dsb2JhbABbgwaBDgaBP4FhiSKoC5UIgQFDAQEBAQEBfIQ5KlQNAgUWCwILAwIBAgE5BgICCA0IAQGILwGsOo9IhWmTNoEhkU+BQwWgEIxCIoFFAQEIAQEBAYIbPoJ0AgEC Received: from unknown (HELO localhost.localdomain) ([109.78.113.198]) by mail1.vodafone.ie with ESMTP; 24 Feb 2015 18:30:16 +0000 Message-ID: <54ECC338.8060206@draigBrady.com> Date: Tue, 24 Feb 2015 18:30:16 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: GNU bug tracker automated control server Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tag 19936 notabug tag 19937 notabug tag 19938 notabug close 19936 close 19937 close 19938 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [213.233.128.43 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tag 19936 notabug tag 19937 notabug tag 19938 notabug close 19936 close 19937 close 19938 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [213.233.128.43 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject tag 19936 notabug tag 19937 notabug tag 19938 notabug close 19936 close 19937 close 19938 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 24 14:15:32 2015 Received: (at control) by debbugs.gnu.org; 24 Feb 2015 19:15:32 +0000 Received: from localhost ([127.0.0.1]:57010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQKxA-0002r1-5V for submit@debbugs.gnu.org; Tue, 24 Feb 2015 14:15:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46956) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQKx5-0002qo-65 for control@debbugs.gnu.org; Tue, 24 Feb 2015 14:15:31 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1OJFPMx004941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 24 Feb 2015 14:15:25 -0500 Received: from [10.3.113.36] (ovpn-113-36.phx2.redhat.com [10.3.113.36]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1OJFPZ2024301 for ; Tue, 24 Feb 2015 14:15:25 -0500 Message-ID: <54ECCDCC.6040906@redhat.com> Date: Tue, 24 Feb 2015 12:15:24 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: GNU bug tracker automated control server Subject: 19936 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oXtuUdipuv3KFNf9vdVRGowbBXN0bhaAR" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oXtuUdipuv3KFNf9vdVRGowbBXN0bhaAR Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable merge 19936 19937 19938 thanks --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --oXtuUdipuv3KFNf9vdVRGowbBXN0bhaAR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJU7M3MAAoJEKeha0olJ0NqS2QH/3HGgzvwloBaBY7tbEbUDGju ZL3+kVkv8xc9XcZexs9aVr3Gm6Q7qGFRU5OhbyPhACzryxkO1ZwClog7WL69GoHr UnPizfXMHWt3iGgLCHX0hFp594GGV8caT5AIdFzx3flQizHQMTck5M5/78BRkdso BgftCrlQQE9mHgMGjSSvPe1x5smZOTZtuHWasOgqu1jN3UvaTol2vAy5orcrUAgs y5yYfJ9NEmcQDG/q484vX8bUo6GqBZuVKIrl47SNYDT+KbbQEQHQykwx+lPoSONd 4DhzVWTy0ftK9HcF3WBA7oIrpHK9W8EB1pNpp7AxsEyfMRPFgAm2nvbtlAjNJ2M= =rYuR -----END PGP SIGNATURE----- --oXtuUdipuv3KFNf9vdVRGowbBXN0bhaAR--