Sort offline search results by relevance