Invert the output order.
Section: sort and uniq
Sort in reverse order
bash
bash
sort -r names.txtExplanation
Common when listing highest values or newest versions first.
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