code: @NotNull
      public Stream<T> sorted() {
          return sorted(new Comparator<T>() {
  
              @SuppressWarnings("unchecked")
              @Override
              public int compare(T o1, T o2) {
                  Comparable c1 = (Comparable) o1;
                  Comparable c2 = (Comparable) o2;
                  return c1.compareTo(c2);
              }
          });
      }
docs: Returns {@code Stream} with sorted elements (as determinated by {@link Comparable} interface).
  
  <p>This is a stateful intermediate operation.
  <p>If the elements of this stream are not {@link Comparable},
  a {@code java.lang.ClassCastException} may be thrown when the terminal operation is executed.
  
  <p>Example:
  <pre>
  stream: [3, 4, 1, 2]
  result: [1, 2, 3, 4]
  </pre>
  
  @return the new stream