From 6d3e1d6b5726201d7c943ba007ef873810ffd7bc Mon Sep 17 00:00:00 2001 From: Greenback Date: Wed, 16 Dec 2020 19:37:23 +0000 Subject: [PATCH] Small Optimization --- MediaBrowser.Common/Plugins/LocalPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Common/Plugins/LocalPlugin.cs b/MediaBrowser.Common/Plugins/LocalPlugin.cs index e48ebbfa5c..8aded8b9bc 100644 --- a/MediaBrowser.Common/Plugins/LocalPlugin.cs +++ b/MediaBrowser.Common/Plugins/LocalPlugin.cs @@ -93,7 +93,7 @@ namespace MediaBrowser.Common.Plugins throw new ArgumentNullException(a == null ? nameof(a) : nameof(b)); } - var compare = string.Compare(a.Name, b.Name, true, CultureInfo.InvariantCulture); + var compare = string.Compare(a.Name, b.Name, StringComparison.OrdinalIgnoreCase); // Id is not equal but name is. if (!a.Id.Equals(b.Id) && compare == 0)