Sorting results by distance.