Verifies whether the specified sort criterion is the currently active one.
The sort criterion to evaluate.
Can be a single criterion or an array of criteria.
The criteria in an array will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:
SortByRelevancy followed by one or more SortByField or SortByDate criteria.
SortByQRE followed by one or more SortByField or SortByDate criteria.
Two or more SortByField criteria.
A single SortByDate criterion and one or more SortByField criteria in any order.
Examples:
SortByRelevancy, SortByFieldSortByQRE, SortByFieldSortByDate, SortByField, SortByFieldtrue 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
Sortcontroller manages how the results are sorted.Example: sort.fn.tsx