升序:code
<ul> <li ng-repeat="user in users | orderBy:user.index">{{user.name}}</li> </ul>
倒序:co
<ul> <li ng-repeat="user in users | orderBy:user.index:'desc'">{{user.name}}</li> </ul>