Command
sortExplanation
sort arranges lines of text files in alphabetical or numerical order.
Examples
Sort alphabetically
sort file.txtSort numerically
sort -n numbers.txtSort in reverse order
sort -r file.txtsortsort arranges lines of text files in alphabetical or numerical order.
Sort alphabetically
sort file.txtSort numerically
sort -n numbers.txtSort in reverse order
sort -r file.txt