diff options
author | sr55 <[email protected]> | 2018-01-12 22:04:13 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2018-01-12 22:04:13 +0000 |
commit | 20a7c436cb6991282bc35b6982148505293720dd (patch) | |
tree | cec355e3a2e9c91bb6e76b0dd98d4f88092cdbfd /win | |
parent | 7346ebb0e4411b8aa1a58e414b3f1793b70a1d27 (diff) |
WinGui: Order presets by name. Fixes #1102
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs | 4 |
1 files 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<string, MenuItem> groupedMenu = new Dictionary<string, MenuItem>(); - 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<string, MenuItem> groupedMenu, PresetDisplayCategory category) { - foreach (Preset preset in category.Presets) + foreach (Preset preset in category.Presets.OrderBy(p => p.Name)) { this.ProcessPreset(groupedMenu, preset); } |