Sorting set of data

S

Su Man

Hi All,

I have set of values arranged as rows and columns.

Say 5 rows and 4 columns.

Is there any mechanism through which I can sort ( preferably using
HashMap/array list ) them by a preferred column?
Some times by Column 3, sometimes by Column 1 etc.

I have data in an array list.
Array list contains hash maps. Each hash map represent a row.
Each hash map holding its column values as name-value pair.

Can you please focus some light on this?

Thanks,
Su man
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top