DHTMLX Docs & Samples Explorer

sortTree(nodeId,order,all_levels)

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxtree_sb.js

reorder items in tree according to their text

  • nodeId - id of node to start sorting from
  • all_levels - sorting all levels or only current level
  • order - sorting order - ASC or DES