sorted method

KtList<T> sorted()

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

Implementation

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