Set sorting order for search queries