Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to sort collection of Maps

807605Aug 14 2007 — edited Aug 14 2007
hi ,

i have a vector of Maps that i need to sort by a specific key in the Map .

like :

first entry : rr=tt , ww=ee , qq=dd
second entry : rr=6 , ww= gg , qq= ss

i need to sort by the value of key name i provide , for example by ww .
then the first row ( or item in the vector) will be before the second .

hoe can i implement it ?

Thanks,

Yair
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2007
Added on Aug 14 2007
16 comments
241 views