Modify the SortAlgorithm.