title: How can I do reverse in a for loop?
body: <p>I have this Js method but I can't to implement a reverse loop</p>
  
  <pre><code>$scope.organizeByMonth = function () {    
      for (var i in $scope.incidents) {
  
          var month = new Date($scope.incidents[i].upload_date).getMonth();    
          if (!monthIncidents[month]) {
  
              monthIncidents[month] = {    
                  name: $scope.months[month],
                  incidents: []
              };
          }
          var incident = $scope.incidents[i];    
          incident.index = i;    
          monthIncidents[month].incidents.push(incident);
      }
  };
  </code></pre>
  
  <p>how can I show the same objects in reverse :/</p>