Implemented some additional validation for a sort filter.