Sort results by distance.