I would like to persist the sort state of a flex tree to my database. I sort the tree items recursively using a sort object on the children list of each item in the tree. Thus the sorting works fine. However, when I now drag and drop things it appears that the tree is sorted using those sort functions and not dropping the item at the position I want it to.
Is there any best practice to handle drag & drop and sorting functions on trees?
I also tried to set the sort to null after refreshing my list, but then drag and drop throws weird errors.
If it helps I can post some code, however I am rather looking for a best practice approach to handle this. If there is anything you could point me to I would really appreciate.
Regards