递归实现对多层嵌套的对象数组依照某属性进行排序
const arr = [
{ importSum: "3", children: [{ importSum: "90", children: [{ importSum: "60" }] },{importSum: "78"}] },
{ importSum: "89", children: [{ importSum: "10", children: [{ importSum: "9" },{ importSum: "4" }] }] },
{ importSum: "25", children: [{ importSum: "111", children: [{importSum: "78" }] },{ importSum: "99", childr
共有 0 条评论