SyntaxFix
Write A Post
Hire A Developer
Questions
Here's the answer of how I achieve it:
Mylist.sort(Comparator.comparing(myClass::getStarttime));