Verifies whether the specified sort criterion is the currently active one.
The sort criterion to evaluate.
true
if the specified sort criterion is the currently active one; false
otherwise.
Updates the sort criterion and executes a new search.
The new sort criterion.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The
Sort
controller manages how the results are sorted.Example: sort.fn.tsx