Add support for the sort parameter when performing a search