Sorter and testing