fixed todo in sorter