Order search results by path length