default <U> Seq<T> sorted(Function<? super T, ? extends U> function, Comparator<? super U> comparator) {
        return sorted(comparing(function, comparator));
    }
Sort by the results of function.
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java