Added the ability to sort search results