Fixed some operator==
Some stuff for ordered