title: AngularJS Ng-repeat group by and filter
body: <p>i have an array from an Azure server Log (clicks array) that i would like to order, this is the request:</p>
  
  <pre><code>$http({
        method: 'Get',
        headers: {
         'Host': 'api.applicationinsights.io',
         'x-api-key': 'xxxxxxxxxxxxxx'
         },
  
         url: 'https://api.applicationinsights.io/v1/apps/20exxxx-xxxx-xxxx-xxxx-cf8bc569d261/query?query=requests | where timestamp &gt; datetime(2018-03-13) and timestamp &lt;= datetime(2018-03-22) %2B 1d | where name contains "GetCode" | where name contains "9278"'
         })
           .success(function (data) {
            $scope.clicks = data.tables[0].rows;
            console.log($scope.clicks)
            })
  </code></pre>
  
  <p>this is the array i get out (about 275.000 rows): </p>
  
  <pre><code>0:
  Array(37)
  0:"2018-03-22T08:37:02.982Z"
  1:"|ypdKJH+nmLI=.aeeeecd8_"
  2:null
  3:"GET /content/GetCode/192.0/9278"
  etc.
  1:
  Array(37)
  0:"2018-03-22T08:37:04.877Z"
  1:"|nynZFXWHS7g=.aeeeece2_"
  2:null
  3:"GET /content/GetCode/1773.0/9278"
  etc.
  </code></pre>
  
  <p>now i only use [3] in this case in my NG-Repet so i made the following:</p>
  
  <pre><code>&lt;div ng-repeat="click in clicks"&gt;
      click: {{(click[3].split('GET /content/GetCode/')[1]).split('/9278')[0]}}
  &lt;/div&gt;
  </code></pre>
  
  <p>it gives me nicely the list of times</p>
  
  <pre><code>192.0
  1773.0
  198.5
  112,0
  32.8
  3148.7
  etc. x 100.000
  </code></pre>
  
  <p>how would i be able to group this list in lets say each minute, so i collect all of them together in groups of 30 sec.</p>
  
  <p>so like this:</p>
  
  <pre><code>  0- 30: 0
   31- 60: 1 (aka 32.8)
   61- 90: 0
   91-120: 1 (aka 112.0)
  121-150: 0
  151-180: 0
  181-210: 2 (aka 192.0 &amp; 198.5)
  211-240: 0 etc. etc. you get the idea i guess.
  </code></pre>
  
  <p>How would i be able to do this?</p>