implement validation for sort_type in Sorter.new