From 022019bffd8eab0c9a67e2d48c4e118930d17518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 23 Sep 2014 21:58:57 +0200 Subject: [PATCH] Sort global variables alphabetically --- app/public/scripts/resultsCtrl.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/public/scripts/resultsCtrl.js b/app/public/scripts/resultsCtrl.js index a8ac6b7..f6377c9 100644 --- a/app/public/scripts/resultsCtrl.js +++ b/app/public/scripts/resultsCtrl.js @@ -12,6 +12,10 @@ app.controller('ResultsCtrl', function ($scope) { // Get the execution tree from the offenders $scope.javascript = JSON.parse($scope.phantomasResults.offenders.javascriptExecutionTree); + // Sort globalVariables offenders alphabetically + $scope.phantomasResults.offenders.globalVariables.sort(); + + initSummaryView(); initExecutionView(); initMetricsView();