src/main/java/sorting/SortingDemo.java
public List<String> alphaSortUsingStreams() {
        return sampleStrings.stream()
                .sorted()
                .collect(toList());
    }
// Default sort from Java 8+
Default sort from Java 8+
Default sort from Java 8 +
public List<String> alphaSortUsingStreams() {
        return sampleStrings.stream()
                .sorted()
                .collect(toList());
    }
public List < String > alphaSortUsingStreams ( ) { return sampleStrings . stream ( ) . sorted ( ) . collect ( toList ( ) ) ; }
Default sort from Java 8+
Default sort from Java 8 +