|
@@ -137,7 +137,8 @@ function sortSeqToNextSibling(needfulData) {
|
|
|
}
|
|
|
sameDepthDatas[data.ParentID].push(data);
|
|
|
}
|
|
|
- for (let sameDepth of Object.values(sameDepthDatas)) {
|
|
|
+ for (let attr in sameDepthDatas) {
|
|
|
+ let sameDepth = sameDepthDatas[attr];
|
|
|
sameDepth.sort((a, b) => a.seq - b.seq);
|
|
|
for (let i = 0; i < sameDepth.length; i++) {
|
|
|
let cur = sameDepth[i],
|