Seeking some assistance here, any help would be greatly appreciated.
Currently using a Wordpress Angular JS plugin that is causing some unusual alphabetical sorting.
This snippet of code showcases the taxonomy:
<!-- for taxonomy -->
<div ng-if="item.option =='taxonomy' && !item.parent_taxonomy">
<h3>{{ item.title }}</h3>
<div ng-if="item.taxonomy">
<div ng-show="item.viewType == 'checkbox'">
<ul>
<li ng-repeat="(key, value) in item.alloption">
<input type="checkbox" ng-change="grabResult( this ,formData[item.taxonomy][key], item)" name="{{value}}" ng-model="formData[item.taxonomy][key]" > {{value}}
</li>
</ul>
</div>
<div ng-show="item.viewType == 'select'">
<select class="form-control" ng-change="grabResult( this ,formData[item.taxonomy] , item)" ng-model="formData[item.taxonomy]">
<option value="">Please select</option>
<option value="{{key}}" ng-repeat="(key ,value) in item.alloption">{{value}}</option>
</select>
</div>
</div>
</div>
I'm trying to rearrange the li elements alphabetically. Is there a way to do this?