reverse json javascript
问题 Is there an inexpensive way to reverse: { "10": "..." "11": "...", "12": "...", "13": "...", "14": "...", } so that I get: { "14": "...", "13": "...", "12": "..." "11": "...", "10": "...", } reverse() doesn't seem to work on json objects. The only way I can think of is to loop through all the elements and create an array. feels like there should be a better way. Edit: thanks for all the help UPDATE: What about let's say if each key has chronological data. When I use $.each on the object, it