我知道如何进行简单的 orderBy,就像这样:ng-repeat="test in tes.tests orderBy: 'modifiedDate'"> 但如何按标题(升序)和最近编辑者(最新的在前)排序呢?
是的,你可以。<div ng-repeat="test in tes.tests | orderBy: ['title','-modifiedDate']"> {{title}} - {{modifiedDate}} </div>
[+'modifiedDate', '-another']
- Alon Eitan