From 20a7c436cb6991282bc35b6982148505293720dd Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 12 Jan 2018 22:04:13 +0000 Subject: [PATCH] WinGui: Order presets by name. Fixes #1102 --- win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs b/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs index d3a114376..1baa99a60 100644 --- a/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs @@ -41,7 +41,7 @@ namespace HandBrakeWPF.Converters } Dictionary groupedMenu = new Dictionary(); - foreach (IPresetObject item in presets) + foreach (IPresetObject item in presets.OrderBy(p => p.Category)) { PresetDisplayCategory category = item as PresetDisplayCategory; if (category != null) @@ -103,7 +103,7 @@ namespace HandBrakeWPF.Converters private void ProcessCategory(Dictionary groupedMenu, PresetDisplayCategory category) { - foreach (Preset preset in category.Presets) + foreach (Preset preset in category.Presets.OrderBy(p => p.Name)) { this.ProcessPreset(groupedMenu, preset); } -- 2.40.0