java 8 stream sorted by field code example
Example: java stream sort
List<String> sorted = original.stream().sorted().collect(Collectors.toList());
List<String> sorted = original.stream().sorted().collect(Collectors.toList());