sort search result by path