svoid test_timSortIntArrayWithComparator() { int n = 1024*1024; int[] a = listToIntArray(shuffled(iotaZeroList(n))); timSortIntArray(a, (x, y) -> cmp(y,x)); print(takeFirst(10, wrapIntArrayAsList(a))); assertEquals(reversed(iotaZeroList(n)), wrapIntArrayAsList(a)); }