Sort gxt2 entries by hash when saving

This commit is contained in:
dexy 2021-11-13 21:37:09 +11:00
parent 28eab37033
commit 2c3b8ee01d

View File

@ -141,6 +141,7 @@ namespace CodeWalker.GameFiles
//error parsing hash, probably should tell the user about this somehow
}
}
entries.Sort((a, b) => a.Hash.CompareTo(b.Hash));
gxt.TextEntries = entries.ToArray();
gxt.EntryCount = (uint)entries.Count;
return gxt;