public int CompareTo(IParsee obj) { if (obj == null) { return(1); } FootballClub other = obj as FootballClub; if (this.Country.CompareTo(other.Country) > 0) { return(1); } else if (this.Country.CompareTo(other.Country) < 0) { return(-1); } else { if (this.City.CompareTo(other.City) > 0) { return(1); } else if (this.City.CompareTo(other.City) < 0) { return(-1); } else { if (this.Name.CompareTo(other.Name) == 0) { return(DateTime.Compare(this.Established, other.Established)); } else { return(this.Name.CompareTo(other.Name)); } } } }