Fixed sort by location so that locations to sort by come up.