SortActions

This is for:

Developer

The sort action creators.

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.