Updated SortAlgorithm to always use SortAlgorithm.predicate.