an> <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;: <span name="scala.AnyRef" class="extype">AnyRef</span></span>]</span><span class="params">(<span name="arg0">arg0: <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html#java.util.function.Function" name="java.util.function.Function" id="java.util.function.Function" class="ext