Sort output

Terminal
sort <file>