You can use compareByDescending : val sortedMap = myHashMap.toSortedMap(compareByDescending { it }).
確定! 回上一頁