I have a custom object whose structure is
public String name;
public int type;
public String createdOn;
createdOn is date and its format is : 2011-12-16T23:27:27+0000
I have stored multiple objects of this type in ArrayList and now I want to sort them according to there creation date and time.
I have tried using Collections.sort(....) , but no suitable result.
Doing some R&D after getting answers, I solved the sorting thing, here is the code to sort array list by date.