📅  最后修改于: 2022-03-11 14:53:34.894000             🧑  作者: Mango
println("--- DESC ---")
val sortedDatesDescending =
dates.sortedWith(compareBy { it.year }.thenBy { it.month }.thenBy { it.day }).reversed()
dates.forEach { println(it) }
println("------")
sortedDatesDescending.forEach { println(it) }