Make 'SortingHelper' generic.