Merge pull request #28 from codewarrior0/unsort-lists

When sorting the children of a TAG_LIST, preserve the original order.
This commit is contained in:
Justin Aquadro 2015-03-18 01:46:56 -04:00
commit 3916b8d362

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));