Hi, I'm using this example to organize categories on a project: http://interface.eyecon.ro/demos/drag_drop_tree.html
It works very fine, but I want to modify it to make also change the order in subtree. The problem is that you can drag elements from an ul to another ul, but if you want to change the order of the subtree in the same ul you can't. In the ondrop function there is a piece of code, the rilevant part I think is this one: subbranch.eq(0).append(dropped); It uses append and then the dropped li goes always on the last position. Can you point me to the solution? I don't know how to take the position of the dropped element inside the ul. Thank you as always :-)