This looks familiar to the other sorter. Use an abstract class both sorters inherit from?