Ok, so on a web page, I\'ve got a JavaScript object which I\'m using as an associative array. This exists statically in a script block when the page loads:
v
The order in which elements are stored in an associative array is not guaranteed. You'll have to sort your output explicitly.