Check documentation for the latest version 6.0 of dhtmlxSuite sortTree DHTMLX Docs

sortTree

reorders items in the tree according to their text

void sortTree(string|number nodeId,string order,boolean allLevels);

Parameters

nodeIdstring|numberthe id of the node to start sorting from
orderstringsorting order - ASC or DES
allLevelsbooleansorting all levels (true) or only current level (false)

Available only in PRO Edition

Back to top