Reputation: 3
I have an array with several objects {id:x , name:y}
retrieved from a Java Enum and I need to order them alphabetically, but one of the objects must mandatorily be in the bottom of the <select>
comboBox, how could I achieve this result? I used ng-options with orderBy, but, I can't figure out how to put this particular object into the bottom.
Upvotes: 0
Views: 53
Reputation: 691893
The easiest way is to sort in the controller, when you get the data from the server:
Upvotes: 1