示例#1
0
        public int CompareTo(CvStat other)
        {
            int result = TotalCount.CompareTo(other.TotalCount);

            if (result == 0)
            {
                result = Loc.CompareTo(other.Loc);
            }
            if (result == 0)
            {
                result = DailyCount.CompareTo(other.DailyCount);
            }
            if (result == 0)
            {
                result = TotalDCount.CompareTo(other.TotalDCount);
            }
            if (result == 0)
            {
                result = DailyDCount.CompareTo(other.DailyDCount);
            }
            return(result);
        }