Sort nested array with sort() with only one top parent

后端 未结 0 1580
野性不改
野性不改 2020-12-30 21:52

I am sorting a nested tree with this function (found here and here):

sortTree(tree) {
    const sorted_tree = tree.sort         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题