Convert an implicit Order<B> to an Order<A> using the given function f.
Order<B>
Order<A>
f
static Order<A> by<A, B>(B Function(A a) f, Order<B> ord) => _Order((x, y) => ord.compare(f(x), f(y)));