[DatTools] Use new comparer to get file-system order

This commit is contained in:
Matt Nadareski
2016-09-07 13:59:25 -07:00
parent 3819819ffa
commit 5b9bbaacfc

View File

@@ -1516,7 +1516,7 @@ namespace SabreTools.Helper
{
return sortable;
}
// Process each all of the roms
foreach (string key in dict.Keys)
{
@@ -2687,7 +2687,12 @@ namespace SabreTools.Helper
int depth = 2, last = -1;
string lastgame = null;
List<string> splitpath = new List<string>();
foreach (string key in sortable.Keys)
// Get a properly sorted set of keys
List<string> keys = sortable.Keys.ToList();
keys.Sort(Style.CompareNumeric);
foreach (string key in keys)
{
List<Rom> roms = sortable[key];