Sort by distance.