Added sorting of search results