Sorting location list by distance