Added compareTo in Mage