]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: mention that sort -g supports hex numbers
authorPádraig Brady <P@draigBrady.com>
Wed, 18 Nov 2020 14:00:43 +0000 (14:00 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 18 Nov 2020 14:00:43 +0000 (14:00 +0000)
* doc/coreutils.texi (sort invocation): Mention explicitly
that --general-numeric-sort supports arbitrary format hex numbers,
but also mention that consistent case/width hex numbers can
be sorted faster with a standard sort.

doc/coreutils.texi

index 99f6d9fb8b40875fe8a957de03821a899563a86c..5ac3745bd0eace03778151809f2fd36797563b2f 100644 (file)
@@ -4397,6 +4397,12 @@ Use this option only if there is no alternative; it is much slower than
 @option{--numeric-sort} (@option{-n}) and it can lose information when
 converting to floating point.
 
+You can use this option to sort hexadecimal numbers prefixed with
+@samp{0x} or @samp{0X}, where those numbers are not fixed width,
+or of varying case.  However for hex numbers of consistent case,
+and left padded with @samp{0} to a consistent width, a standard
+lexicographic sort will be faster.
+
 @item -h
 @itemx --human-numeric-sort
 @itemx --sort=human-numeric