How to apply groupBy in AngularJS?
<p>I am fetching categories from database and showing in HTML with <code>ng-repeat</code>. I want to sort categories with <code>groupBy</code>. I searched on google and found <strong>angular-filter</strong> library.</p>

<p>I used the same library but it didn't work:</p>

<pre><code>&lt;li ng-repeat="blog in blogs | groupBy:'category' "&gt;
                &lt;a href="#/category/{{blog.category}}"&gt;{{blog.category }}&lt;/a&gt;
              &lt;/li&gt; 
&lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular-filter/0.4.7/angular-filter.js"&gt;&lt;/script&gt;
</code></pre>

<p>Please suggest me what is wrong or any other way to do it.</p>