diff --git a/Vocaluxe/Base/CSongCategorizer.cs b/Vocaluxe/Base/CSongCategorizer.cs index 282e62a7..4c16bf3a 100644 --- a/Vocaluxe/Base/CSongCategorizer.cs +++ b/Vocaluxe/Base/CSongCategorizer.cs @@ -71,7 +71,7 @@ namespace Vocaluxe.Base { if (songPointer.SortString != "") { - if (lastCategory == null || songPointer.SortString != lastCategory.Name) + if (lastCategory == null || String.Compare(songPointer.SortString, lastCategory.Name, StringComparison.CurrentCultureIgnoreCase) != 0) { lastCategory = new CCategory(songPointer.SortString); _Categories.Add(lastCategory); diff --git a/Vocaluxe/Base/CSongSorter.cs b/Vocaluxe/Base/CSongSorter.cs index f1703224..f521118f 100644 --- a/Vocaluxe/Base/CSongSorter.cs +++ b/Vocaluxe/Base/CSongSorter.cs @@ -155,7 +155,7 @@ namespace Vocaluxe.Base list.Add(new CSongPointer(song.ID, value)); else { - if (list.Count == 0) + if (values.Count == 0) list.Add(new CSongPointer(song.ID, "")); else list.AddRange(values.Select(val => new CSongPointer(song.ID, val)));