sort
sort [-n] [-r] [file]
Risk: Safe
What it does
Puts lines in order: A to Z, or by number with -n.
When to use it
Before uniq, or to rank results.
Example
$ sort -rn counts.txtBiggest number first.
Learn it in: Pipes and redirects · Official docs