In the above table a 'null' value in BaseNumber signifies that an entry has no 'parent'. 'Child' has a BaseNumber of '1', meaning that it is the child of the entity with UniqueNumber '1'. This data grows dynamically, and it might be expected to consist of up to 3000 entries.

My problem is that i want to display this information visually as a tree of sorts. There is an example of the sort of tree display i am looking for shown in the jdsk folder, but, having browsed the code and almost understood it, i can't see how to enter the children under the correct parent. From what i can see the example i have been looking at places its child nodes randomly instead of specifiying what values go where.