mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 09:38:25 +00:00
update name sorting
This commit is contained in:
parent
7aa85fc8dd
commit
cc20c8d7d6
7 changed files with 102 additions and 33 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue