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.
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 comparerscmpXandcmpYthat projects and compares the two fields, thencombineComparers(cmpX, cmpY)returns a function that compares by field X, and when those are equal (socmpXreturns 0), compares by field Y.