arrow-core / arrow.core.extensions / EitherOrder / compare
open fun Either<L, R>.compare(b: Either<L, R>): Ordering
Do you like Arrow?