sort the location by alphabetical order