Interface ISortService

Index

Properties

Methods

Properties

public colSortFnCache: any

public isCustomSort: boolean

public isSorting: boolean

Methods

public Sort(sortInfo: ISortInfo, data: any)

Parameters

public basicSort(a: any, b: any): number

Parameters

  • a: any
  • b: any

Returns

number

public getSortFn(col: IColumn, data: any): (a: any, b: any) => number

Parameters

Returns

(a: any, b: any) => number

public guessSortFn(item: any): (a: any, b: any) => number

Parameters

  • item: any

Returns

(a: any, b: any) => number

public sortAlpha(a: string, b: string): number

Parameters

  • a: string
  • b: string

Returns

number

public sortBool(a: boolean, b: boolean): number

Parameters

  • a: boolean
  • b: boolean

Returns

number

public sortData(sortInfo: ISortInfo, data: any)

Parameters

public sortDate(a: Date, b: Date): number

Parameters

  • a: Date
  • b: Date

Returns

number

public sortNumber(a: number, b: number): number

Parameters

  • a: number
  • b: number

Returns

number

public sortNumberStr(a: string, b: string): number

Parameters

  • a: string
  • b: string

Returns

number