rx-datatable API
    Preparing search index...

    Function combineComparers

    • Returns a function that sorts with two or more comparison functions for the same type T. For example, if T is { x: number, y: string } and you have two comparers cmpX and cmpY that projects and compares the two fields, then combineComparers(cmpX, cmpY) returns a function that compares by field X, and when those are equal (so cmpX returns 0), compares by field Y.

      Type Parameters

      • T

      Parameters

      • comparator: (a: T, b: T) => number
      • ...comparators: ((a: T, b: T) => number)[]

      Returns (a: T, b: T) => number