sorted

fun <T : Comparable<T>> Array<out T>.sorted(): List<T> (source)
fun ByteArray.sorted(): List<Byte> (source)
fun ShortArray.sorted(): List<Short> (source)
fun IntArray.sorted(): List<Int> (source)
fun LongArray.sorted(): List<Long> (source)
fun FloatArray.sorted(): List<Float> (source)
fun DoubleArray.sorted(): List<Double> (source)
fun CharArray.sorted(): List<Char> (source)
fun <T : Comparable<T>> Iterable<T>.sorted(): List<T> (source)

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