You can use sortedBy with destructuring syntax and leave the first argument blank: map.toList().sortedBy { (_, value) -> value }.toMap().
確定! 回上一頁