Sfoglia il codice sorgente

Sort global variables alphabetically

Gaël Métais 10 anni fa
parent
commit
022019bffd
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      app/public/scripts/resultsCtrl.js

+ 4 - 0
app/public/scripts/resultsCtrl.js

@@ -12,6 +12,10 @@ app.controller('ResultsCtrl', function ($scope) {
         // Get the execution tree from the offenders
         // Get the execution tree from the offenders
         $scope.javascript = JSON.parse($scope.phantomasResults.offenders.javascriptExecutionTree);
         $scope.javascript = JSON.parse($scope.phantomasResults.offenders.javascriptExecutionTree);
 
 
+        // Sort globalVariables offenders alphabetically
+        $scope.phantomasResults.offenders.globalVariables.sort();
+
+
         initSummaryView();
         initSummaryView();
         initExecutionView();
         initExecutionView();
         initMetricsView();
         initMetricsView();