steve64
Nodes should be inserted in the order of strings in the constructor. I will check this.
The TreeItem.index
property is the node visual position from the first TreeItem until the last one. It's not a unique ID.
You cannot add custom info to TreeItems as their are dynamic objects. What you can do is to use a table to keep the TreeItems custom data by using the index as table index. But the Tree should not be modified as it can impact the TreeItem.id value