adding support for ordering search results