Added setter for sorting.