how to sort a treemap using bubble sort?

Posted by Tsuna Sawada on Stack Overflow See other posts from Stack Overflow or by Tsuna Sawada
Published on 2011-01-06T07:36:06Z Indexed on 2011/01/06 7:53 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

27527-683
27525-1179
27525-1571
27525-1813
27525-4911
27526-1303
27526-3641
27525-3989
27525-4083
27525-4670
27526-4102
27526-558
27527-2411
27527-4342

this is the list of key where it is declared as string in a map
then i want to sort it in ascending order.
how can i use a bubble sorting method inside a map?
where the value of the key is a list. in order to get :

27525-1179
27525-1571
27525-1813
27525-3989
27525-4083
27525-4670
27525-4911
27526-558
27526-1303
27526-3641
27526-4102
27527-683
27527-2411
27527-4342

© Stack Overflow or respective owner

Related posts about sorting

Related posts about map