getBase fixed (and superfluous Sorter class removed)