made sorting of search results first by rating then number of reviews