From 4cd45ecc21a7c6884715ccfb6096bcc2ccfb8abc Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 21 Oct 2023 10:06:22 +0300 Subject: [PATCH] Sort Custom Formats by name (cherry picked from commit e9bb1d52a72b20a58d1a672ecfa3797eda6f081a) --- .../CustomFormats/CustomFormatCalculationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs b/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs index 7bca362e9..91ea9deb2 100644 --- a/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs +++ b/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs @@ -142,7 +142,7 @@ namespace NzbDrone.Core.CustomFormats } } - return matches; + return matches.OrderBy(x => x.Name).ToList(); } private static List ParseCustomFormat(BookFile bookFile, Author author, List allCustomFormats)