升序:
<ul>
<li ng-repeat="user in users | orderBy:user.index">{{user.name}}</li>
</ul>
倒序:
<ul>
<li ng-repeat="user in users | orderBy:user.index:'desc'">{{user.name}}</li>
</ul>
升序:
<ul>
<li ng-repeat="user in users | orderBy:user.index">{{user.name}}</li>
</ul>
倒序:
<ul>
<li ng-repeat="user in users | orderBy:user.index:'desc'">{{user.name}}</li>
</ul>
转载于:https://my.oschina.net/u/2391658/blog/806017