Linux Hint published a tutorial about how to use the Bash sort command.
How to Use the Bash Sort Command
The Bash sort command is used to sort a file's content and give output in the stdout. With sort, you can sort a file's contents alphabetically.
How to Use the Bash Sort Command