kotest-assertions-core / io.kotest.matchers.collections / kotlin.collections.List / shouldBeSortedWith

shouldBeSortedWith

infix fun <T> List<T>.shouldBeSortedWith(comparator: Comparator<in T>): Unit
infix fun <T> List<T>.shouldBeSortedWith(cmp: (T, T) -> Int): Unit