sort search results by distance