When sorting the children of a TAG_LIST, preserve the original order. Order matters for TAG_LISTs.

This commit is contained in:
David Vierra 2015-03-06 00:51:58 -10:00
parent abde7d87c9
commit f2688a8f9f

View file

@ -79,6 +79,16 @@ namespace NBTExplorer.Controllers
}
}
TagDataNode px = dx.Parent as TagDataNode;
TagDataNode py = dy.Parent as TagDataNode;
if (px != null && py != null)
{
if (px.Tag.GetTagType() == TagType.TAG_LIST || py.Tag.GetTagType() == TagType.TAG_LIST)
{
return 0;
}
}
TagType idx = dx.Tag.GetTagType();
TagType idy = dy.Tag.GetTagType();
int tagOrder = this.OrderForTag(idx).CompareTo(this.OrderForTag(idy));