}
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)
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);
}