I want to drag a node with childnodes onto another node containing childnode as well. Right now the dropped node get added below the childnodes, I want that node consisting of child on top of the list
e.g Node1
-----Node 2
-----Node 3
-----Node 4
-----Node 5 (dropped Node)
----------Node 6
----------Node 6
I want it like this
Node1
-----Node 5 (dropped Node)
----------Node 6
----------Node 6
-----Node 2
-----Node 3
-----Node 4
This can be done programmatically looping through the nodes and adjusting them, but i want to know is there any solution to add the drop node at any desired place or on top of the list.