/// <summary>
        /// Compares the candidate with another candidate, to determine the favorited candidate.
        /// </summary>
        /// <param name="other">Other candidate to compare with.</param>
        /// <returns>Returns a value, indicating which one is the better candidate.</returns>
        public int CompareTo(ArcmapPickCandidate other)
        {
            int result = GeometryType.CompareTo(other.GeometryType);

            if (result == 0)
            {
                result = DistanceToClickPoint.CompareTo(other.DistanceToClickPoint);
            }
            return(result);
        }