Public bug reported: The --reverse option is supposed to reverse the sense of comparisons, but does not affect numeric ('g' or 'n') sorts. With the input filed 02 q l 10 f abc 01 x abc 01 y abc 01 z n 10 u d 02 m d 02 b b 10 c I get the same results with either of sort --reverse -k2n sort -k2n
namely abc 01 x abc 01 y abc 01 z d 02 b d 02 m d 02 q b 10 c l 10 f n 10 u But if I do sort --reverse -k2 I get n 10 u l 10 f b 10 c d 02 q d 02 m d 02 b abc 01 z abc 01 y abc 01 x And the same things happen with or without leading zeroes on field 2. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: coreutils 8.21-1ubuntu5 ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11 Uname: Linux 3.13.0-43-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.6 Architecture: amd64 CurrentDesktop: XFCE Date: Sat Dec 20 11:00:06 2014 InstallationDate: Installed on 2014-08-11 (131 days ago) InstallationMedia: Xubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140723) SourcePackage: coreutils UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: coreutils (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug trusty -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to coreutils in Ubuntu. https://bugs.launchpad.net/bugs/1404548 Title: sort --reverse does not reverse numeric sorts Status in coreutils package in Ubuntu: New Bug description: The --reverse option is supposed to reverse the sense of comparisons, but does not affect numeric ('g' or 'n') sorts. With the input filed 02 q l 10 f abc 01 x abc 01 y abc 01 z n 10 u d 02 m d 02 b b 10 c I get the same results with either of sort --reverse -k2n sort -k2n namely abc 01 x abc 01 y abc 01 z d 02 b d 02 m d 02 q b 10 c l 10 f n 10 u But if I do sort --reverse -k2 I get n 10 u l 10 f b 10 c d 02 q d 02 m d 02 b abc 01 z abc 01 y abc 01 x And the same things happen with or without leading zeroes on field 2. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: coreutils 8.21-1ubuntu5 ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11 Uname: Linux 3.13.0-43-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.6 Architecture: amd64 CurrentDesktop: XFCE Date: Sat Dec 20 11:00:06 2014 InstallationDate: Installed on 2014-08-11 (131 days ago) InstallationMedia: Xubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140723) SourcePackage: coreutils UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1404548/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp