What is the correct Ordering of this Javascript Array?
<p>In Firefox the output is ordered Alphabetically (which is the order they are declared). In IE and Chrome they are numerical. All latest versions.</p>

<p>Which is correct?</p>

<pre><code>&lt;html&gt;
&lt;head&gt;&lt;/head&gt;
&lt;body&gt;
&lt;script type="text/javascript"&gt;
function makeArray()
{
    var array = [{5:'Five',4:'Four',1:'One',3:'Three',2:'Two'}];
    var msg = '';

    for (var val in array[0])
    {
        msg = msg + val;
    }   
    alert(msg);
}
&lt;/script&gt;
&lt;input type="button" onClick="makeArray();" value="Press Me" /&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Back Story...
In <a href="http://www.inflectra.com/SpiraTeam/" rel="nofollow">SpiraTeam</a> (Our current bug tracking system) many of the lists (users, modules, etc) are ordered using a similar format to the above. This makes finding stuff very hard and annoying unless you use FireFox. My interest is purely academical, I only ask because I want to know which browser's correct.</p>
