sortedArray

Common
JVM
JS
Native
1.0
fun < T : Comparable < T > > Array < T > . sortedArray ( ) : Array < T >
(source)

Returns an array with all elements of this array sorted according to their natural sort order.

The sort is stable . It means that equal elements preserve their order relative to each other after sorting.

Common
JVM
JS
Native
1.0
fun IntArray . sortedArray ( ) : IntArray
(source)
@ExperimentalUnsignedTypes fun UIntArray . sortedArray ( ) : UIntArray
(source)
@ExperimentalUnsignedTypes fun ULongArray . sortedArray ( ) : ULongArray
(source)
@ExperimentalUnsignedTypes fun UByteArray . sortedArray ( ) : UByteArray
(source)
@ExperimentalUnsignedTypes fun UShortArray . sortedArray ( ) : UShortArray
(source)

Returns an array with all elements of this array sorted according to their natural sort order.