public int CompareTo(Offset obj)
		{
			if (Row.CompareTo(obj.Row) != 0)
			{
				return Row.CompareTo(obj.Row);
			}
			if (Col.CompareTo(obj.Col) != 0)
			{
				return Col.CompareTo(obj.Col);
			}
			return 0;
		}
Example #2
0
            public int CompareTo(Node other)
            {
                int cmp = Time.CompareTo(other.Time);

                if (cmp == 0)
                {
                    cmp = -Row.CompareTo(other.Row);
                }
                if (cmp == 0)
                {
                    cmp = Col.CompareTo(other.Col);
                }
                if (cmp == 0)
                {
                    cmp = Place.CompareTo(other.Place);
                }
                return(cmp);
            }