diff options
| author | crobibero <cody@robibe.ro> | 2020-07-31 10:17:51 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-07-31 10:17:51 -0600 |
| commit | 3d5f89ebf96f3d9689748a8a5057cd69cace859e (patch) | |
| tree | 03e55f52385405f018902b6dbd70041466fd7c08 /Emby.Server.Implementations/Sorting/SortNameComparer.cs | |
| parent | 461b298be7247afd7f7962604efab3b58b9dae4b (diff) | |
| parent | cb31aba5ddea9b961872946ee2d79fdac91de293 (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-dlna-server
Diffstat (limited to 'Emby.Server.Implementations/Sorting/SortNameComparer.cs')
| -rw-r--r-- | Emby.Server.Implementations/Sorting/SortNameComparer.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Sorting/SortNameComparer.cs b/Emby.Server.Implementations/Sorting/SortNameComparer.cs index cc0571c78..f745e193b 100644 --- a/Emby.Server.Implementations/Sorting/SortNameComparer.cs +++ b/Emby.Server.Implementations/Sorting/SortNameComparer.cs @@ -6,7 +6,7 @@ using MediaBrowser.Model.Querying; namespace Emby.Server.Implementations.Sorting { /// <summary> - /// Class SortNameComparer + /// Class SortNameComparer. /// </summary> public class SortNameComparer : IBaseItemComparer { @@ -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); } |
