Angularjs: ng-options: How to order options with group and non-group
I have my group by ng-options looks like this
Here is my data
the problem is that this creates the optgroup on the bottoms of this select menu, not the order as same as my data list.
i want to produce:
Here is Fiddle
As far as I know, you can’t have a mixed select – options within and without groups.
You could create a generic group for these options:
Here is your updated fiddle.