add a `cmp` convenience method to `Ord`