Check documentation for the latest version of dhtmlxSuite sortTree DHTMLX Docs

sortTree

reorders items in the tree according to their text

void sortTree(string|number nodeId,string order,boolean allLevels);
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