我有一个排序方案,我不知道如何acheive呢? 两个收藏品
List<<String>String> Key, List<<String>String> Value
我必须对a-z的值进行排序,并且不应更改相应值的密钥。
>>eg: Key and Value
2=>two
100=>four
1=>five
0=>nine
3=>eight
8=>one
>>after Sorting:
3=>eight
1=>five
100=>four
0=>nine
8=>one
2=>two
任何人请帮帮我吗?
发生了什么?2 => two'? – stracktracer
和排序后不按字母顺序排序... 8 =>一,0 =>九? – jelies
我的清单是分开的。不在一个集合中。即密钥和价值或与索引相匹配的独立集合。我必须对这些值进行排序,以便重新排序。 – Prabhu