krotki
data class Item(val type: Int, val value: String) val l = mutableListOf(Item(1, "header"), Item(2, "c"), Item(2, "a"), Item(2, "b")).sortedWith(compareBy({ it.type }, { it.value })) println(l)