Sorts search results by length distance from query