-
-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
Description
Hello,
If you look at this example:
https://crlcu.github.io/multiselect/examples/optgroup.html
We have that:
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
And when we look at the rendered multiselect, we have this ordering:
Swedish Cars
Saab
German Cars
Audi
Mercedes
So:
- the optgroups are NOT sorted
- the options inside the optgroup are sorted
Is there a way to have the optgroup sorted, and the option sorted at the same time, like that:
German Cars
Audi
Mercedes
Swedish Cars
Saab
Am I missing an option or something ?
Thank you for your help!
Reactions are currently unavailable