forked from mirrors/NBTExplorer
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:
commit
3916b8d362
1 changed files with 10 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue