bug-coreutils
[Top][All Lists]
Advanced

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

bug#30661: sort


From: James Bunke
Subject: bug#30661: sort
Date: Wed, 28 Feb 2018 23:42:59 +0000 (UTC)

To: address@hidden

This seems an oversight than an actual bug:

    'sort -n' thinks "B" is a larger value than "AA" -- yep! someone
forgot about hexadecimal, but binary, octal, and decimal work fine.

Suggestion: Don't revert to alphanumeric sorting until the rules are
broken by the sort field:

    1) There is an optional leading Plus(+) or Minus(-) but just one.
    2) There is an optional single Point(.) that may occur anywhere
       within the field except before an optional Plus or Minus.
    3) Numerals are limited to "0123456789ABCDEFabcdef".
    4) No white space, other letters, or other punctuation allowed or
       revert to alphanumeric sort.

Thank You,
J.B.

P.S.: Shouldn't be necessary to transform data to sort it...
      Use '-nx' or '-gx' if you must, but it shouldn't be needed.


reply via email to

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