java stream order by property

Java
List<String> sorted = original.stream().sorted().collect(Collectors.toList());List<String> sorted = original.stream().sorted((o1,o2)-> o1.compareTo(o2)).collect(Collectors.toList());
Source

Also in Java: