SortOptions: {
    caseSensitive?: boolean;
    collatorOptions?: Intl.CollatorOptions;
    comparator?: ((a, b) => number);
    reverse?: boolean;

Type declaration

  • Optional caseSensitive?: boolean

    Sort case sensitively.

  • Optional collatorOptions?: Intl.CollatorOptions

    Options to pass to Intl.Collator for string comparisons. This overrides the caseSensitive options.

  • Optional comparator?: ((a, b) => number)
      • (a, b): number
      • A custom comparator to use. This overrides all other options except reverse.


        • a: any
        • b: any

        Returns number

  • Optional reverse?: boolean

    Reverse the sort order.

Generated using TypeDoc