From 3a8102003d173ab3978727bf6f65a5a06f6cdc24 Mon Sep 17 00:00:00 2001 From: youkunhuang Date: Tue, 5 Jun 2018 17:34:19 +0800 Subject: [PATCH] chore(h5test): groups sort before filter --- bin/tsw/util/auto-report/TEReport.js | 4 ++++ 1 file changed, 4 insertions(+) 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;