Apparently ng-options is sorting my array lexographically . How can I prevent this default behavior?
This is the months
object
"months": {
"01": "January",
"02": "February",
"03": "March",
"04": "April",
"05": "May",
"06": "June",
"07": "July",
"08": "August",
"09": "September",
"10": "October",
"11": "November",
"12": "December"
}
And this is the html generated by ng-options.
<select ng-model="avtripExpMonth" name="avtripExpMonth" ng-options="k as v for (k,v) in months">
<option value="?" selected="selected"></option>
<option value="string:10" label="October">October</option>
<option value="string:11" label="November">November</option>
<option value="string:12" label="December">December</option>
<option value="string:01" label="January">January</option>
<option value="string:02" label="February">February</option>
<option value="string:03" label="March">March</option>
<option value="string:04" label="April">April</option>
<option value="string:05" label="May">May</option>
<option value="string:06" label="June">June</option>
<option value="string:07" label="July">July</option>
<option value="string:08" label="August">August</option>
<option value="string:09" label="September">September</option>
</select>
note: This is not a duplicate of How to use natural sorting in ng-options because this question is asking how to prevent the apparent default sorting behavior, not how to cause sorting to occur.