@@ -3353,7 +3353,7 @@ line as the key and acts as if no ordering options were specified.
3353
3353
But if @option {--reverse } (@option {-r }) was specified along with other
3354
3354
ordering options, then the last-resort comparison does use @option {--reverse }.
3355
3355
In any case, when no ordering option is specified or when only
3356
- @option {--reverse } is specified, the last-resort comparison is not performed
3356
+ @option {--reverse } is specified, the last-resort comparison is not performed.
3357
3357
3358
3358
@item -S @var {size }
3359
3359
@itemx -- buffer-size=@var {size }
@@ -3419,6 +3419,12 @@ Normally, output only the first of a sequence of lines that compare
3419
3419
equal. For the @option {--check } (@option {-c }) option,
3420
3420
check that no pair of consecutive lines compares equal.
3421
3421
3422
+ The commands @code {sort -u } and @code {sort | uniq } are equivalent, but
3423
+ this equivalence does not extend to arbitrary @command {sort } options.
3424
+ For example, @code {sort -n -u } inspects only the value of the initial
3425
+ numeric string when checking for uniqueness, whereas @code {sort -n |
3426
+ uniq } inspects the entire line. @xref {uniq invocation }.
3427
+
3422
3428
@item -z
3423
3429
@itemx -- zero-terminated
3424
3430
@opindex -z
@@ -3618,6 +3624,7 @@ lines that are not repeated, or all repeated lines.
3618
3624
The input need not be sorted, but repeated input lines are detected
3619
3625
only if they are adjacent. If you want to discard non-adjacent
3620
3626
duplicate lines, perhaps you want to use @code {sort -u }.
3627
+ @xref {sort invocation }.
3621
3628
3622
3629
@vindex LC_COLLATE
3623
3630
Comparisons use the character collating sequence specified by the
0 commit comments