Since it is not possible to get a JSON file with the original order, I'd like to sort it in JS again. The file looks like this:
{
"index": 5,
"timestamp": 1570438008,
"data": {
"12": [
"Title 2",
"Description 2"
],
"10": [
"Title 1",
"Description 1"
]
}
}
If I access this JSON file now from JS, I get another order than the original:
$.ajax({
url: '../json/smiirl_data.json',
dataType: 'json',
success: function(response) {
console.log(response['data']);
}
});
console.log from JS shows:
{
"10": [
"Title 1",
"Description 1"
],
"12": [
"Title 2",
"Description 2"
]
}
Is it possible to sort (title descending) it? I need the orignal order (12, 10).