I have an array returned by a JSON function looks like that :
{"178":"05HY24","179":"1HY12","292":"1HY24","180":"3HY12"}
I am using the function each to put elements to a select list :
$.each(value, function(k, v) {
select += '<option value="'+ k +'">'+ v +'</option>'
}
The each function is not executed in the order of the array because the element with id 292 is always at the end of my list. And when I debug in the each function the last value launched is the element 292. How can I do to make a list by keeping the order of the array?