クラス DefaultSortingStrategy

階層

  • DefaultSortingStrategy

実装

Index

メソッド

メソッド

compareValues

  • compareValues(a: any, b: any): 0 | "1" | "-1"

sort

  • sort(data: any[], fieldName: string, dir: SortingDirection, ignoreCase: boolean, valueResolver: function, isDate?: boolean, isTime?: boolean): any[]
  • パラメーター

    • data: any[]
    • fieldName: string
    • dir: SortingDirection
    • ignoreCase: boolean
    • valueResolver: function
        • (obj: any, key: string, isDate?: boolean): any
        • パラメーター

          • obj: any
          • key: string
          • オプション isDate: boolean

          返却 any

    • オプション isDate: boolean
    • オプション isTime: boolean

    返却 any[]

Static instance