diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-24 16:27:44 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-24 16:27:44 -0400 |
| commit | cc20c8d7d6c8b46e5026f2ad8d73473dec3fe9d8 (patch) | |
| tree | 7861b40116f9ec7fb8c8dfee731a7ed53de1293c /MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs | |
| parent | 7aa85fc8dd2ea61b54a996cd3233190b85778e0f (diff) | |
update name sorting
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs | 7 |
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> |
