sort [-r] file
This is a much simplified sort command syntax.
sort will sort the input file in the ASCII collating sequence. The -r flag will sort file in reverse ASCII collating sequence.
The default output is the standard output (the original file is left unchanged).