I want to sort a list with Lambda:
List messagesByDeviceType = new ArrayList(); messagesByDeviceType.sort((Message o1, Messag
In the place of Developer write your class name Comparator byName = (Developer o1, Developer o2)->o1.getName().compareTo(o2.getName());