val numbers = arrayOf(5, 2, 4, 1, 3) // 对数组进行排序 numbers.sort(0, numbers.count()) // 排序后的数组: [1, 2, 3, 4, 5] numbers.forEach { _console.log(it) }