parent
fe9f51d903
commit
09c2241723
|
@ -505,6 +505,12 @@ export default {
|
||||||
return (this.d_sortOrder * result);
|
return (this.d_sortOrder * result);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
for (let i = 0; i < _nodes.length; i++) {
|
||||||
|
if (_nodes[i].children && _nodes[i].children.length) {
|
||||||
|
_nodes[i].children = this.sortNodesSingle(_nodes[i].children);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return _nodes;
|
return _nodes;
|
||||||
},
|
},
|
||||||
sortMultiple(nodes) {
|
sortMultiple(nodes) {
|
||||||
|
@ -516,6 +522,12 @@ export default {
|
||||||
return this.multisortField(node1, node2, 0);
|
return this.multisortField(node1, node2, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
for (let i = 0; i < _nodes.length; i++) {
|
||||||
|
if (_nodes[i].children && _nodes[i].children.length) {
|
||||||
|
_nodes[i].children = this.sortNodesMultiple(_nodes[i].children);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return _nodes;
|
return _nodes;
|
||||||
},
|
},
|
||||||
multisortField(node1, node2, index) {
|
multisortField(node1, node2, index) {
|
||||||
|
|
Loading…
Reference in New Issue