title: How can I group data with an Angular ng-repeat?
body: <p>I have a set of objects on display with the information about that object. I use ng-repeat to show all the objects, but I would now like to implement a filter or function, group objects by month, if i have objects registered in the same month, to show in my index all of the objects with that month</p>
  
  <p>this is my JSON Array, with the value " upload_date " is where I would like to get the specific month</p>
  
  <pre><code>"_embedded": {
      "incidents": [
          {
              "id": 20,
              "name": "Nombre de incidente",
              "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
              "timestamp": "2015-03-13T00:00:00-0600",
              "upload_date": "2015-03-31T23:58:19-0600",
              "archived": false,
              "_links": {
                  "self": {
                      "href": "http://incidents-core/app_dev.php/incidents/20"
                  },
                  "attachments": {
                      "href": "http://incidents-core/app_dev.php/incidents/20/attachments"
                  },
                  "comments": {
                      "href": "http://incidents-core/app_dev.php/incidents/20/comments"
                  }
              }
  </code></pre>
  
  <p>and here is my html code with ng-repeat, this works </p>
  
  <pre><code>&lt;ul class="list" &gt;
                 &lt;h1&gt;January&lt;/h1&gt;&lt;br /&gt;**&lt;---- HERE I WOULD LIKE THO SHOW THE MONTH**
                 &lt;br /&gt;
                  &lt;li class="list__item" ng-repeat="incident in incidents"&gt;
                      &lt;!-- ngrepeat: mostrar total de incidentes--&gt;
                      &lt;a href="#" data-toggle="modal" data-target="#incidentModal" ng-click="selectIncident($index)"&gt;
                          &lt;!-- /.badgetSection--&gt;
                          &lt;figure class="list__item__inner"&gt;
                              &lt;div class="bagdets"&gt;
                                  &lt;span class="glyphicon glyphicon glyphicon-comment"&gt;&lt;span&gt; {{incident._embedded.commentsCount}} &lt;/span&gt;
                                  &lt;span class="glyphicon glyphicon glyphicon-picture"&gt;&lt;span&gt; {{incident._embedded.attachmentsCount}} &lt;/span&gt;
                              &lt;/div&gt;
                              &lt;!-- ./badges --&gt;
                              &lt;div class="incident-image"&gt;
                                  &lt;img ng-src="{{incident._links.thumbnail.href || 'img/03.jpg'}}"&gt;
                                  &lt;p class="incident-type"&gt;&lt;span&gt;{{incident._embedded.incident_type}}&lt;/span&gt;
                                  &lt;/p&gt;
                              &lt;/div&gt;
                              &lt;figcaption&gt;
                                  &lt;p&gt;{{incident.name}}&lt;/p&gt;
                                  &lt;div class="line-separator"&gt;&lt;/div&gt;
                                  &lt;p&gt;{{incident.description | strLimit: 90 }}&lt;/p&gt;
                                  &lt;div class="line-separator"&gt;&lt;/div&gt;
                                  &lt;p&gt;&lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt; {{incident.timestamp | date:'EEE - dd/mm/yyyy'}} &lt;span class="glyphicon glyphicon-time"&gt;&lt;/span&gt; {{incident.timestamp | date:'hh:mm:ss a'}}&lt;/p&gt;
                                  &lt;div class="line-separator"&gt;&lt;/div&gt;
                                  &lt;p&gt; &lt;span class="glyphicon glyphicon-user"&gt;&lt;/span&gt; {{incident._embedded.employee}}&lt;/p&gt;
                              &lt;/figcaption&gt;
                          &lt;/figure&gt;
                      &lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
  </code></pre>
  
  <p>My idea is to try and show all registered objects sorted by month , if there are no objects in that month , just do not show the month. But I don't know how can I grouping by months</p>