aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/SortNameComparer.cs
diff options
context:
space:
mode:
authorMax Git <rotvel@gmail.com>2020-06-23 09:20:50 +0200
committerMax Git <rotvel@gmail.com>2020-06-23 09:20:50 +0200
commitc35c401d65e00fd539c5451fbb0391327af5c610 (patch)
tree3c5275c8fe6842d18f2667afa8a9233c37867b05 /Emby.Server.Implementations/Sorting/SortNameComparer.cs
parentcd8d04f0555c9041a5a2495025e587a2ed994c8a (diff)
parent0be10db5a5ea5f284b310e55ee572016a177decd (diff)
Merge branch 'master' into feature/ffmpeg-version-check
Diffstat (limited to 'Emby.Server.Implementations/Sorting/SortNameComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/SortNameComparer.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Sorting/SortNameComparer.cs b/Emby.Server.Implementations/Sorting/SortNameComparer.cs
index 93389fc3e..f745e193b 100644
--- a/Emby.Server.Implementations/Sorting/SortNameComparer.cs
+++ b/Emby.Server.Implementations/Sorting/SortNameComparer.cs
@@ -19,10 +19,14 @@ namespace Emby.Server.Implementations.Sorting
public int Compare(BaseItem x, BaseItem y)
{
if (x == null)
+ {
throw new ArgumentNullException(nameof(x));
+ }
if (y == null)
+ {
throw new ArgumentNullException(nameof(y));
+ }
return string.Compare(x.SortName, y.SortName, StringComparison.CurrentCultureIgnoreCase);
}