import kotlin.random.Random fun sortedList(intArray: IntArray) = intArray.filter { it % 2 != 0 }.sorted() fun main(){ val intArray = IntArray(10) { Random.nextInt(0, 100) } sortedList(intArray) }