Revert "Fixed #281 - Infinite loop on treetable"

This reverts commit 965dffa968.
pull/310/head
cagataycivici 2020-04-19 11:45:54 +03:00
parent fe9f51d903
commit 09c2241723
1 changed files with 12 additions and 0 deletions

View File

@ -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) {