From 7358521a7a839f17d1f84b0941316b4037301a7c Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Mon, 26 Dec 2022 18:08:32 -0600 Subject: [PATCH] fix: Sort CFs alphabetically in CLI listing --- CHANGELOG.md | 4 ++++ src/Recyclarr.TrashLib/Services/Common/GuideDataLister.cs | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c657cf6b..7b870183 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Sort CFs alphabetically in `--list-custom-formats` + ### Fixed - Releases now retain executable permissions on Linux and macOS. diff --git a/src/Recyclarr.TrashLib/Services/Common/GuideDataLister.cs b/src/Recyclarr.TrashLib/Services/Common/GuideDataLister.cs index ec766a1d..6ff47bca 100644 --- a/src/Recyclarr.TrashLib/Services/Common/GuideDataLister.cs +++ b/src/Recyclarr.TrashLib/Services/Common/GuideDataLister.cs @@ -17,6 +17,7 @@ public class GuideDataLister : IGuideDataLister _console.Output.WriteLine("\nList of Custom Formats in the TRaSH Guides:"); var categories = customFormats + .OrderBy(x => x.Name) .ToLookup(x => x.Category) .OrderBy(x => x.Key);