diff --git a/bin/tsw/util/auto-report/TEReport.js b/bin/tsw/util/auto-report/TEReport.js index 90a0d233..ba96efa8 100644 --- a/bin/tsw/util/auto-report/TEReport.js +++ b/bin/tsw/util/auto-report/TEReport.js @@ -169,6 +169,10 @@ this.getAllGroup = function() { const res = []; const map = {}; + arr.sort(function(a, b) { + return a.order - b.order; + }); + arr.forEach(function(v) { if (!map[v.group]) { map[v.group] = true;