Sorting elements in AngularJS for nested ng-repeat
问题 I am using bootstrap to display a grid of projects with each row having 3 columns. In order to accomplish this, I am using ng-repeat twice like below. <div class="row" ng-repeat="chunk in projects"> <div class="col-sm-4" ng-repeat="project in chunk | orderBy:'title'"> {{project.title}} </div> </div> I want to be able to sort the project based on its title field. Applying a filter only sorts a subset of the whole list i.e. sorts at the chunk level rather than the projects level. var projects =