Beispiel #1
0
        public int CompareTo(Waypoint other)
        {
            int x = ID.CompareTo(other.ID);

            if (x == 0)
            {
                int y = Lat.CompareTo(other.Lat);
                if (y == 0)
                {
                    return(Lon.CompareTo(other.Lon));
                }
                return(y);
            }

            return(x);
        }