Refactored out #sorter and test for sorter strings