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
  • order - sorting order - ASC or DES
  • all_levels - sorting all levels or only current level