sortWith

abstract fun sortWith(comparator: Comparator<in T>)

使用指定的 comparator 对此数组的元素进行排序。

参考 kotlin.collections.sortWith

Parameters

comparator

用于比较元素的 Comparator