I have some drop-down menus from a plugin that do not display their contents in alphabetical or an ascending/descending order.
The lists look like this in the inspector:
<ul class="options">
<li class = "opt">
<span><i></i></span>
<label> BAC </label>
</li>
<li class = "opt">
<span><i></i></span>
<label> ACD </label>
</li>
<li class = "opt">
<span><i></i></span>
<label> FBC </label>
</li>
</ul>
I would like to sort these li's by the contents of the label.
The order of the list is currently whatever was entered into a spreadsheet last is at the top.
I have attempted some solutions found here including this one Sort an html list with javascript
However, the order of my drop down remains the same.
This is my first time asking a question, let me know if I left out anything crucial. Thanks.