aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-24 16:27:44 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-24 16:27:44 -0400
commitcc20c8d7d6c8b46e5026f2ad8d73473dec3fe9d8 (patch)
tree7861b40116f9ec7fb8c8dfee731a7ed53de1293c /MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
parent7aa85fc8dd2ea61b54a996cd3233190b85778e0f (diff)
update name sorting
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs b/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
index 389b21ba7..873753a2b 100644
--- a/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
+++ b/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
@@ -18,12 +18,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
/// <returns>System.Int32.</returns>
public int Compare(BaseItem x, BaseItem y)
{
- if (!x.EnableAlphaNumericSorting || !y.EnableAlphaNumericSorting)
- {
- return string.Compare(x.SortName, y.SortName, StringComparison.CurrentCultureIgnoreCase);
- }
-
- return AlphanumComparator.CompareValues(x.SortName, y.SortName);
+ return string.Compare(x.SortName, y.SortName, StringComparison.CurrentCultureIgnoreCase);
}
/// <summary>