public int CompareTo(SymbolReference other)
            {
                // If references have different weights, order by the ones with lower weight (i.e.
                // they are better matches).
                if (this.SearchResult.Weight < other.SearchResult.Weight)
                {
                    return(-1);
                }

                if (this.SearchResult.Weight > other.SearchResult.Weight)
                {
                    return(1);
                }

                // If the weight are the same, just order them based on their names.
                return(INamespaceOrTypeSymbolExtensions.CompareNamespaceOrTypeSymbols(this.SearchResult.Symbol, other.SearchResult.Symbol));
            }
 public int CompareTo(SymbolReference other)
 {
     return(INamespaceOrTypeSymbolExtensions.CompareNamespaceOrTypeSymbols(this.Symbol, other.Symbol));
 }