add missing `Eq` and `Ord` implementations