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!

Help required in sorting a HashMap

807591Apr 15 2008 — edited Apr 15 2008
HI all,
I have a hashmap which contains values from the resultset.
I have stored values of the resultset in hashmap using the keyvalue pair whrein the key is created using the following logic
ColumnName + rowNumber
The hashmap contains values of different datatypes.
I need to sort the hashmap based on the values and it should be based on the column which the user selects
I need to implement multi sort till 4 levels

If there is any other approach where in can store the complete resultset row and any easier way to sort it will be welcomed.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2008
Added on Apr 15 2008
6 comments
170 views