Handle multiple results from query by sorting by distance.