Custom order using orderBy in ng-repeat
问题 I have objects like this: students = {name: 'Aa_Student', class: 'A_Class'}, {name: 'Ab_Student', class: 'A_Class'}, {name: 'Ac_Student', class: 'B_Class'}, {name: 'Ba_Student', class: 'B_Class'}, {name: 'Bb_Student', class: 'C_Class'}, {name: 'Bc_Student', class: 'C_Class'} Let's say the students object is shuffled. I use ng-repeat to show the data. I want to sort the objects in the custom order. For example, I want to show the data like this: Name Class ----------------------------- Ac