(Deprecated) SortCriteriaActions
(Deprecated) SortCriteriaActions
The sort criteria action creators.
Loader Function
loadSortCriteriaActions
Parameters
-
engine:
The headless engine.
Returns SortCriteriaActionCreators
: The sort criteria action creators.
SortCriteriaActionCreators
registerSortCriterion
Initializes the sortCriteria query parameter. For more information, refer to the documentation on query parameters.
Parameters
-
criterion:
SortByRelevancy | SortByQRE | SortByDate | SortByField | SortByNoSort
The initial sort criterion.
Returns PayloadAction<SortCriterion | SortCriterion[]>
: A dispatchable action.
updateSortCriterion
Updates the sortCriteria query parameter. For more information, refer to the documentation on query parameters.
Parameters
-
criterion:
SortByRelevancy | SortByQRE | SortByDate | SortByField | SortByNoSort
The sort criterion to set.
Returns PayloadAction<SortCriterion | SortCriterion[]>
: A dispatchable action.