Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Classes

Type aliases

Type aliases

SortOptions

SortOptions: { caseSensitive?: boolean; collatorOptions?: Intl.CollatorOptions; reverse?: boolean; comparator?: any }

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 reverse?: boolean

    Reverse the sort order.

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

      Parameters

      • a: any
      • b: any

      Returns number

Generated using TypeDoc