posted 16 years ago
Hi All,
How to sort a Collection of ArrayList based on the first(date)element of the ArrayList?
For example,(date is in YYYY/MM/DD format)
I have a Collection as: [[2002/02/01,12,34],[2005/02/08,45,67],[2001/02/11,78,91],[2006/01/27,78,34],[2006/01/28,88,45]]
where [2002/02/01,12,34],[2005/02/08,45,67],[2001/02/11,78,91][2006/01/27,78,34],[2006/01/28,88,45] are ArrayLists.
Now I want to sort the above collection on date by desc order as
[[2006/01/28,88,45],[2006/01/27,78,34],[2005/02/08,45,67],[2002/02/01,12,34],[2001/02/11,78,91]]
Please give me some clear idea on this?
Thanks& Regards,
Deepak