Iterate over a Javascript associative array in sorted order
<p>Let's say I have a Javascript associative array (a.k.a. hash, a.k.a. dictionary):</p>

<pre><code>var a = new Array();
a['b'] = 1;
a['z'] = 1;
a['a'] = 1;
</code></pre>

<p>How can I iterate over the keys in sorted order? If it helps simplify things, I don't even need the values (they're all just the number 1).</p>
