mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Edit forms: tag lists are now sorted in descending order.
This commit is contained in:
parent
bdadc36347
commit
f60dc25d9f
4 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue