The Sort controller manages how the results are sorted.

Example: sort.fn.tsx

interface Sort {
    state: SortState;
    isSortedBy(criterion: SortCriterion | SortCriterion[]): boolean;
    sortBy(criterion: SortCriterion | SortCriterion[]): void;
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

Properties

Methods

Properties

state: SortState

A scoped and simplified part of the headless state that is relevant to the Sort controller.