From 07359d2a63002a7fe22d54fabfa6aeb42889cfdc Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 22 Jul 2021 20:59:08 -0700 Subject: [PATCH] Tweak Linq statement --- MPF.Library/Utilities/Validators.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MPF.Library/Utilities/Validators.cs b/MPF.Library/Utilities/Validators.cs index 1608325c..5d9c7f9a 100644 --- a/MPF.Library/Utilities/Validators.cs +++ b/MPF.Library/Utilities/Validators.cs @@ -1049,9 +1049,9 @@ namespace MPF.Utilities // Join the output protections for writing string protections = string.Join(", ", found .Where(kvp => kvp.Value != null && kvp.Value.Any()) - .OrderBy(kvp => kvp.Value) .SelectMany(kvp => kvp.Value) - .Distinct()); + .Distinct() + .OrderBy(p => p)); return (true, protections); } catch (Exception ex)