This adds the `sorter` function, which works in the same way as the old `sortResults` function.
data-*