move `Eq` and `Ord` to a `cmp` module