I have an array of objects and I am trying to sort (or group) them by a boolean object attribute with using angularjs' ng-repeat functionality.
I tried using orderBy and groupBy but none of them worked.
here is my html:
<tbody md-body>
<tr md-row ng-repeat="item in dashboardCtrl.unAckAlertList | limitTo : 4 | orderBy: 'item.urgent'">
<td md-cell>
<i ng-if="item.urgent" class="fa fa-warning" style="font-size:22px;color:red;"></i><i ng-if="!item.urgent" class="fa fa-warning" style="font-size:22px;color:slategray;"></i><span><b> {{item.status}}</b></span>
</td>
<td md-cell>
{{item.MyName}} / {{item.sourceProperty}}
</td>
<td md-cell>
{{item.name}}
</td>
It never worked and I wonder why.