Added a getArray-method in Sorter and a call to this in Sort