public int Compare(StreamSubmarket other) { int ret = 0; ret = MarketId.CompareTo(other.MarketId); if (ret != 0) { return(ret); } ret = Name.CompareTo(other.Name); return(ret); }