sortedWith + compareBy (taking a vararg of lambdas) do the trick: val sortedList = list.sortedWith(compareBy({ it.age }, { it.name })).
確定! 回上一頁