Options to specify how query results are sorted

interface SortOptions {
    sort?: readonly SortItem[];
    sortIgnoreCase?: boolean;
}

Properties

sort?: readonly SortItem[]

An array of sort definitions. Each definition contains an attribute property to sort on and a 'descending' property indicating the direction of sorting.

sortIgnoreCase?: boolean

Defines that sorting should be done ignoring case. Default is true.