Implement comparison traits by specifying a key, this may make implementing key-based comparison a little bit easier.