$1:java.util.function.Function[_&gt;:T,_&lt;:U]):java.util.Comparator[T]" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">def</span></span> <span class="symbol"><span class="name">thenComparing</span><span class="tparams">[<span name="U">U &lt;: <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html#java.lang.Comparable" name="java.lang.Comparable" id="java.lang.Comparable" class="extype">Compa