Skip to content

Commit

Permalink
Merge pull request #101 from huangyoukun/master
Browse files Browse the repository at this point in the history
chore(h5test): groups sort before filter
  • Loading branch information
RobinzZH authored Jun 5, 2018
2 parents 756012e + 3a81020 commit cd04d44
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 cd04d44

Please sign in to comment.