updated to sort locations by name