aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-08 15:47:11 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-08 15:47:11 -0500
commit803d60d9cff49bad9e6a53d43c2a39cc5dffb2dc (patch)
tree59286ed94cff760d8b376e9b2ba42a6950d00581 /MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
parent96961572cd592153eb03c44a315e6ed4e421da5b (diff)
support natural sorting
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs b/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
index 873753a2b..e635cfbe5 100644
--- a/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
+++ b/MediaBrowser.Server.Implementations/Sorting/SortNameComparer.cs
@@ -1,7 +1,6 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Sorting;
using MediaBrowser.Model.Querying;
-using System;
namespace MediaBrowser.Server.Implementations.Sorting
{
@@ -18,7 +17,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
/// <returns>System.Int32.</returns>
public int Compare(BaseItem x, BaseItem y)
{
- return string.Compare(x.SortName, y.SortName, StringComparison.CurrentCultureIgnoreCase);
+ return AlphanumComparator.CompareValues(x.SortName, y.SortName);
}
/// <summary>