sorting locations by state and city