Esempio n. 1
0
            public int CompareTo(Node other)
            {
                if (MasterID == other.MasterID)
                {
                    return(0);
                }
                var c = -DistanceScore.CompareTo(other.DistanceScore);

                if (c == 0)
                {
                    c = Auth.CompareTo(other.Auth);
                }
                if (c == 0)
                {
                    c = Hub.CompareTo(other.Hub);
                }
                return(-c);
            }