We have a list of students. Please order the list according to the name in ascending order; ignore upper or lowercase.
Custom sort order for collection
List of students
Report a typo
Sample Input 1:
peter anne kyle julie michaelSample Output 1:
[anne, julie, kyle, michael, peter]Write a program in Kotlin
fun main() {
val list = readln().split(" ")
// write your code here
val res =
println(res)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.