// Compares the Weight first (sum of every digit of the Num); if Weight is equal, compares Num public int CompareTo(Number num) { int compareValue = Weight.CompareTo(num.Weight); if (compareValue == 0) { compareValue = Num.CompareTo(num.Num); } return(compareValue); }
public int CompareTo(object obj) { return(Num.CompareTo(((Cards)obj).num)); }
public int CompareTo(Die d) { return(Num.CompareTo(d.Num)); }
public int CompareTo(Feed other) => Num.CompareTo(other.Num);