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();