[DatItem] ... uh, that's actually for this one. Previous tweaks writing to all stats but HTML

This commit is contained in:
Matt Nadareski
2016-09-26 15:49:46 -07:00
parent 3d5fb3a930
commit 34f150958f

View File

@@ -756,7 +756,11 @@ namespace SabreTools.Helper
{
if ((x.Type == ItemType.Rom || x.Type == ItemType.Disk) && (y.Type == ItemType.Rom || y.Type == ItemType.Disk))
{
return nc.Compare(x.Name, y.Name);
if (Path.GetDirectoryName(x.Name) == Path.GetDirectoryName(y.Name))
{
return nc.Compare(Path.GetFileName(x.Name), Path.GetFileName(y.Name));
}
return nc.Compare(Path.GetDirectoryName(x.Name), Path.GetDirectoryName(y.Name));
}
else if ((x.Type == ItemType.Rom || x.Type == ItemType.Disk) && (y.Type != ItemType.Rom && y.Type != ItemType.Disk))
{
@@ -768,7 +772,11 @@ namespace SabreTools.Helper
}
else
{
return nc.Compare(x.Name, y.Name);
if (Path.GetDirectoryName(x.Name) == Path.GetDirectoryName(y.Name))
{
return nc.Compare(Path.GetFileName(x.Name), Path.GetFileName(y.Name));
}
return nc.Compare(Path.GetDirectoryName(x.Name), Path.GetDirectoryName(y.Name));
}
}
return nc.Compare(x.MachineName, y.MachineName);