Sorting preferred location according to distance