combineComparators

fun <T> combineComparators(vararg comparators: Comparator<T>): Comparator<T>

Combines multiple comparators in priority order. The first comparator that returns a non-zero result determines the ordering; subsequent comparators are skipped for that pair. Mirrors combineComparators from stream-video-js.