Sort definition to specify the order of items.

interface SortItem {
    attribute: string;
    descending?: boolean;
}

Properties

attribute: string

Attribute to sort on.

descending?: boolean

Direction of the sort (ascending or descending). Default value is 'false'.