I have two arraylists that consist of the datetime objects and merging both the list using.
list1.addAll(list2);
I want to now sort this arraylist on the order of the date time object that the arraylist consists of. Can anyone guide me how to sort this arraylist.
If you meant they have Java Date object. You can just do Collections#sort()