diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-06-22 07:38:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-22 07:38:08 +0200 |
| commit | f50bdb0f328e0c853f97521b12c3618b1af55e0b (patch) | |
| tree | ec7eb27175c1a00a2f6199a012d69c152a082c3c /Emby.Server.Implementations/Sorting/StudioComparer.cs | |
| parent | 026d8d28b7e7e0aea54426eff05419e2bfc735a0 (diff) | |
| parent | db716bde95e6c14afc48d1343fc74ddbbd2ad97e (diff) | |
Merge pull request #6204 from Bond-009/extensions
Diffstat (limited to 'Emby.Server.Implementations/Sorting/StudioComparer.cs')
| -rw-r--r-- | Emby.Server.Implementations/Sorting/StudioComparer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Sorting/StudioComparer.cs b/Emby.Server.Implementations/Sorting/StudioComparer.cs index 01445c525..6826aee3b 100644 --- a/Emby.Server.Implementations/Sorting/StudioComparer.cs +++ b/Emby.Server.Implementations/Sorting/StudioComparer.cs @@ -4,6 +4,7 @@ using System; using System.Linq; +using Jellyfin.Extensions; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Sorting; using MediaBrowser.Model.Querying; @@ -30,7 +31,7 @@ namespace Emby.Server.Implementations.Sorting throw new ArgumentNullException(nameof(y)); } - return AlphanumComparator.CompareValues(x.Studios.FirstOrDefault() ?? string.Empty, y.Studios.FirstOrDefault() ?? string.Empty); + return AlphanumericComparator.CompareValues(x.Studios.FirstOrDefault(), y.Studios.FirstOrDefault()); } /// <summary> |
