Javaのコードから考えるとKotlinでももちろんシンプルな記述となります。 val sortedList = list .sortedWith(compareBy({ it.age }, { it.name })).
確定! 回上一頁