Here's an issue we're facing: when the ajax script receives a dictionary from the server, the order changes:
The server sent this:
{753: 'Wraith', 752: 'Phantom Extended', 751: 'Phantom', 750: 'Ghost Extended', 749: 'Ghost', 748: 'Dawn', 747: 'Cullinan', 746: 'Black Badge'}
However, the client receives this:
{746: "Black Badge", 747: "Cullinan", 748: "Dawn", 749: "Ghost", 750: "Ghost Extended", 751: "Phantom", 752: "Phantom Extended", 753: "Wraith"}
JavaScript:
$.ajax({
method: 'GET',
url: request_url,
success: function(data){
console.log(data.response_models);
...
Additionally, the server is running on Django.
Any assistance would be greatly appreciated. Thank you!