code: public static <T> Stream<T> sort(Stream<T> list) {
          return list.sorted(COMPARATOR);
      }
docs: Sort the given list.
  
  @param list The list to sort
  @param <T>  The stream generic type
  @return The sorted stream