Skip to content

Commit

Permalink
chore(h5test): groups sort before filter
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed Jun 5, 2018
1 parent f79edb7 commit 3a81020
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/tsw/util/auto-report/TEReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a81020

Please sign in to comment.