1.单字段
ng-repeat="item in dataList | orderBy:'field' "
2.多字段
ng-repeat="item in dataList | orderBy:['field','field2','field3'] "
如果需要倒序 则在字段前带上 "-" 符号即可
如:ng-repeat="item in dataList | orderBy:'-field' "
1.单字段
ng-repeat="item in dataList | orderBy:'field' "
2.多字段
ng-repeat="item in dataList | orderBy:['field','field2','field3'] "
如果需要倒序 则在字段前带上 "-" 符号即可
如:ng-repeat="item in dataList | orderBy:'-field' "