Modified Sorter a bit