static L sortByMethod(Collection c, fS method) { ret sortByCalculatedField(c, func(A a) -> O { callOpt(a, method) }); } static L sortByMethod(S method, Collection c) { ret sortByMethod(c, method); }