revert changes to miscsorter lib