Json data got sorted on browser by its key
This a problem where the browser decides to sort the json you provided its own way rather than the one you sorted.
And it happens especially if you have key value pair in json payload you are passing.
I observed that some browsers, at least Chrome, is doing the sorting in the situation that is discussed above.
For the fix: make the key of the json values you are passing string format rather than number
in place of using: