sort command is used to sort a list of lines.
Input from a file
Input from a command
You can sort any output command. In the example a list of file following a pattern.
find * -name pattern | sort
Get monthly updates about new articles, cheatsheets, and tricks.