IComparator
Home > @gooddata/sdk-model > IComparator
IComparator type
Function that can be used to sort collections. The semantics are the same as the first argument to Array#sort function.
Signature:
export type IComparator<T> = (a: T, b: T) => number;