sort_file according to alphabetical order