SortActions
SortActions
This is for:
DeveloperIn this article
The sort action creators.
See Dispatch Actions.
Loader Function
loadSortActions
Loads the commerce sort reducer and returns the available sort action creators.
Parameters
-
engine:
CommerceEngine
The commerce engine.
Returns SortActionCreators
: The sort action creators.
SortActionCreators
applySort
Applies a sort criterion.
Parameters
-
payload:
SortCriterion
The payload of the action.
Returns PayloadAction<ApplySortPayload>
: A dispatchable action.