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