class MoreMath::Permutation

def <=>(other)

The mixed in methods from the Comparable module rely on this method.

and the Permutation#rank.
Compares to Permutation instances according to their Permutation#size
def <=>(other)
  size <=> other.size.zero? || rank <=> other.rank
end