Kotlin Sortedby
val list = arrayOf("abc", "d", "efghi", "jklm")
val sorted = list.sortedBy { it.length } //sort by length ascending
//sorted: ["d", "abc", "jklm", "efghi"]
Joyous Jellyfish