Sort lines of text files. More information: https://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html.
sort {{path/to/file}}
sort {{[-r|--reverse]}} {{path/to/file}}
sort {{[-f|--ignore-case]}} {{path/to/file}}
sort {{[-n|--numeric-sort]}} {{path/to/file}}
/etc/passwd by the 3rd field of each line numerically, using “:” as a field separator:sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3n}} {{/etc/passwd}}
sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3,3n}} {{[-k|--key]}} {{4,4g}} {{/etc/passwd}}
sort {{[-u|--unique]}} {{path/to/file}}
sort {{[-o|--output]}} {{path/to/file}} {{path/to/file}}