Fix confusion about priority by making sure sorting takes into account the entire number

This commit is contained in:
Matt Nadareski
2016-05-09 16:22:47 -07:00
parent f5cf9cb802
commit 2d95c59a90
2 changed files with 1 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ namespace SabreTools.Helper
foreach (RomData rom in newroms) foreach (RomData rom in newroms)
{ {
count++; count++;
string key = (norename ? "" : rom.SystemID + "-" + rom.SourceID + "-") + rom.Game.ToLowerInvariant(); string key = (norename ? "" : rom.SystemID.ToString().PadLeft(10, '0') + "-" + rom.SourceID.ToString().PadLeft(10, '0') + "-") + rom.Game.ToLowerInvariant();
if (sortable.ContainsKey(key)) if (sortable.ContainsKey(key))
{ {
sortable[key].Add(rom); sortable[key].Add(rom);

Binary file not shown.