implement `Eq` and `Ord` for `Rc`