sort — sorting text
The sort
tool can be used to sort text. It sorts the contents of the files
named on the commandline, or the text provided on standard input if no files are
given. Output is to standard output by default, unless a -o filename
option
is provided.
To ignore case, the -f
switch may be used.
Many other options are available. See man sort
and
IEEE Std 1003.1-2017-sort for details.