CompareTo() method used to sort