From 2bc6bd74bee5d08639159b53856887ee1a2d9e99 Mon Sep 17 00:00:00 2001 From: Dmitri Suvorov Date: Sun, 5 Jul 2015 02:37:55 +0300 Subject: [PATCH] Display commands in alphabetical order --- OpenRA.Utility/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenRA.Utility/Program.cs b/OpenRA.Utility/Program.cs index 750fc1b5b5..f775663c2a 100644 --- a/OpenRA.Utility/Program.cs +++ b/OpenRA.Utility/Program.cs @@ -71,9 +71,12 @@ namespace OpenRA.Utility if (actions == null) return; - foreach (var a in actions) + + var keys = actions.Keys.OrderBy(x => x); + + foreach (var key in keys) { - var descParts = a.Value.Method.GetCustomAttributes(true) + var descParts = actions[key].Method.GetCustomAttributes(true) .SelectMany(d => d.Lines).ToArray(); if (descParts.Length == 0)