소스 검색

Sort global variables alphabetically

Gaël Métais 11 년 전
부모
커밋
022019bffd
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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
         $scope.javascript = JSON.parse($scope.phantomasResults.offenders.javascriptExecutionTree);
 
+        // Sort globalVariables offenders alphabetically
+        $scope.phantomasResults.offenders.globalVariables.sort();
+
+
         initSummaryView();
         initExecutionView();
         initMetricsView();