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

@@ -125,11 +125,8 @@ namespace SabreTools.Library.DatFiles
VerifyFieldCount = true
};
// 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];