as title, I encounter a problem that is my json data was parsed by javascript and it seems also sorted my array data, but original data is correct.
My data is use Laravel to get data, and the data in PHP is also correct.
The original data:
"product_detail":{
"280": {
"condiment": {
"17": { ... },
"16": { ... }
}
}
}
but, when I console.log it, the data will be like:
"product_detail":{
"280": {
"condiment": {
"16": { ... },
"17": { ... }
}
}
}
I don't know is Javascript automatically sort data or not?
Can anyone help me?