sorting the locations list