sorted method

  1. @useResult
KtList<T> sorted()

Returns a list of all elements sorted according to their natural sort order.

Implementation

@useResult
KtList<T> sorted() => sortedWith(naturalOrder());