Default lexicographic sort.
Section: sort and uniq
Sort lines alphabetically
bash
bash
sort names.txtExplanation
`sort` is often the first step before `uniq` or `comm`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sort and uniq