Display commands in alphabetical order

This commit is contained in:
Dmitri Suvorov
2015-07-05 02:37:55 +03:00
parent 6e4ab810d8
commit 2bc6bd74be

View File

@@ -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<DescAttribute>(true)
var descParts = actions[key].Method.GetCustomAttributes<DescAttribute>(true)
.SelectMany(d => d.Lines).ToArray();
if (descParts.Length == 0)