sortWith

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

根据指定的比较器对列表元素进行排序。此操作会触发UI状态更新。

Parameters

comparator

用于确定列表元素顺序的比较器。