Exemple #1
0
        public int CompareTo(ArtistViewModel other)
        {
            if (this.IsAllArtists && other.IsAllArtists)
            {
                return(0);
            }

            if (this.IsAllArtists)
            {
                return(-1);
            }

            if (other.IsAllArtists)
            {
                return(1);
            }

            return(String.Compare(SortHelpers.RemoveArtistPrefixes(this.Name), SortHelpers.RemoveArtistPrefixes(other.Name), StringComparison.OrdinalIgnoreCase));
        }