Treeview get order after DND

Hello,

how do I get the final sort of all items after an DND event?

the object “treeview.items” has all items but they are not sorted. :frowning:

Regards Stephan

Unfortunately the API of the treeView does not allow to get the sorted order of all the items.
You may only use the getSubItems() method:
https://docs.dhtmlx.com/api__dhtmlxtreeview_getsubitems.html
to get the sorted state of the items in the specified parent.