public int CompareTo(ShipSupply obj) { if (obj == null) { return(1); } else { return(Percent.CompareTo(obj.Percent)); } }