fixed typo in sorter