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.
Collections.sort(list1);should do the trick for you.