Type alias RowGroupOrder

RowGroupOrder: "asc" | "desc" | "insertion" | ((a, b) => number)

The order of the groups of one level: ascending ("asc", the default), descending, in the order the keys first appear in the rows ("insertion"), or an own comparison of two keys. Empty keys (null, undefined, "") are always last.

Type declaration

    • (a, b): number
    • Parameters

      • a: unknown
      • b: unknown

      Returns number

Example

const months: RowGroupOrder = (a, b) => MONTHS.indexOf(a as string) - MONTHS.indexOf(b as string);

Since

1.1.94