Every example I find is about doing this alphabetically, while I need my elements sorted by date.
My ArrayList contains objects on which one of the datamembers is a
Here's the answer of how I achieve it:
Mylist.sort(Comparator.comparing(myClass::getStarttime));