sorter class working