Edit forms: tag lists are now sorted in descending order.

This commit is contained in:
MaxED 2015-02-27 14:32:29 +00:00
parent bdadc36347
commit f60dc25d9f
4 changed files with 8 additions and 8 deletions

View file

@ -86,8 +86,8 @@ namespace CodeImp.DoomBuilder.GZBuilder.Controls
}
}
//now sort them
tags.Sort();
//now sort them in descending order
tags.Sort((a, b) => -1 * a.CompareTo(b));
//create tag infos
foreach(int tag in tags)

View file

@ -41,8 +41,8 @@ namespace CodeImp.DoomBuilder.Types
tags.Add(t.Tag);
}
//now sort them
tags.Sort();
//now sort them in descending order
tags.Sort((a, b) => -1 * a.CompareTo(b));
//create enum items
foreach(int tag in tags)

View file

@ -80,8 +80,8 @@ namespace CodeImp.DoomBuilder.Types
tags.Add(t.Tag);
}
//now sort them
tags.Sort();
//now sort them in descending order
tags.Sort((a, b) => -1 * a.CompareTo(b));
//create enum items
foreach(int tag in tags)

View file

@ -41,8 +41,8 @@ namespace CodeImp.DoomBuilder.Types
tags.Add(t.Tag);
}
//now sort them
tags.Sort();
//now sort them in descending order
tags.Sort((a, b) => -1 * a.CompareTo(b));
//create enum items
foreach(int tag in tags)