Create and use SortedKeys

This commit is contained in:
Matt Nadareski
2020-07-26 21:00:30 -07:00
parent 0112821a72
commit efc90457e5
18 changed files with 49 additions and 83 deletions

View File

@@ -501,11 +501,8 @@ namespace SabreTools.Library.DatFiles
// Write out each of the machines and roms
string lastgame = null;
// Get a properly sorted set of keys
List<string> keys = Keys;
keys.Sort(new NaturalComparer());
foreach (string key in keys)
// Use a sorted list of games to output
foreach (string key in SortedKeys)
{
List<DatItem> roms = this[key];