Пример #1
0
        public int CompareTo(RulesetInfo other)
        {
            if (OnlineID >= 0 && other.OnlineID >= 0)
            {
                return(OnlineID.CompareTo(other.OnlineID));
            }

            // Official rulesets are always given precedence for the time being.
            if (OnlineID >= 0)
            {
                return(-1);
            }
            if (other.OnlineID >= 0)
            {
                return(1);
            }

            return(string.Compare(ShortName, other.ShortName, StringComparison.Ordinal));
        }
Пример #2
0
 public int CompareTo(EFRulesetInfo other) => OnlineID.CompareTo(other.OnlineID);