Added sort support in Search API.