-.\" $OpenBSD: sort.1,v 1.56 2016/10/17 02:58:29 lteo Exp $
+.\" $OpenBSD: sort.1,v 1.57 2017/06/10 14:54:42 schwarze Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)sort.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: October 17 2016 $
+.Dd $Mdocdate: June 10 2017 $
.Dt SORT 1
.Os
.Sh NAME
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl C, Fl Fl check=silent|quiet
+.It Fl C , Fl Fl check Ns = Ns Cm silent Ns | Ns Cm quiet
Check that the single input file is sorted.
If it is, exit 0; if it's not, exit 1.
In either case, produce no output.
-.It Fl c, Fl Fl check
+.It Fl c , Fl Fl check
Like
.Fl C ,
but additionally write a message to
.It Fl f , Fl Fl ignore-case
Consider all lowercase characters that have uppercase
equivalents to be the same for purposes of comparison.
-.It Fl g, Fl Fl general-numeric-sort, Fl Fl sort=general-numeric
+.It Fl g , Fl Fl general-numeric-sort , Fl Fl sort Ns = Ns Cm general-numeric
Sort by general numerical value.
As opposed to
.Fl n ,
permissive format than that allowed by
.Fl n
but it has a significant performance drawback.
-.It Fl h, Fl Fl human-numeric-sort, Fl Fl sort=human-numeric
+.It Fl h , Fl Fl human-numeric-sort , Fl Fl sort Ns = Ns Cm human-numeric
Sort by numerical value, but take into account the SI suffix,
if present.
Sorts first by numeric sign (negative, zero, or
options (human-readable).
.It Fl i , Fl Fl ignore-nonprinting
Ignore all non-printable characters.
-.It Fl M, Fl Fl month-sort, Fl Fl sort=month
+.It Fl M , Fl Fl month-sort , Fl Fl sort Ns = Ns Cm month
Sort by month abbreviations.
Unknown strings are considered smaller than valid month names.
-.It Fl n , Fl Fl numeric-sort, Fl Fl sort=numeric
+.It Fl n , Fl Fl numeric-sort , Fl Fl sort Ns = Ns Cm numeric
An initial numeric string, consisting of optional blank space, optional
minus sign, and zero or more digits (including decimal point)
.\" with
.\" (as defined in the current locale),
is sorted by arithmetic value.
Leading blank characters are ignored.
-.It Fl R, Fl Fl random-sort, Fl Fl sort=random
+.It Fl R , Fl Fl random-sort , Fl Fl sort Ns = Ns Cm random
Sort lines in random order.
This is a random permutation of the inputs with the exception that
equal keys sort together.
the same random hash function is used for all of them.
.It Fl r , Fl Fl reverse
Sort in reverse order.
-.It Fl V, Fl Fl version-sort
+.It Fl V , Fl Fl version-sort
Sort version numbers.
The input lines are treated as file names in form
PREFIX VERSION SUFFIX, where SUFFIX matches the regular expression