Sort the points based on distance in the list view