How to sort a treemap based on its values?

前端 未结 9 1030
萌比男神i
萌比男神i 2020-12-01 04:53

How can I sort a treemap using its values rather than the key?

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 05:31

    Swap values and keys.

    More seriously, please provide some context what you want to achieve. Maybe it is enough to sort after other processing is finished.

提交回复
热议问题