Add ability to sort the result set