sort

fun sort(with: Comparator<T>)(source)

Sorts the list with the given comparator. This causes the underlying model to also be sorted.