sort() function in IE
<p>So this code doesnt seem to work with IE, I have not found anything that says it shouldn't.
What am I doing wrong?</p>

<pre><code> ​&lt;ul id="cars"&gt;
    &lt;li id="2"&gt;Ford&lt;/li&gt;
    &lt;li id="1"&gt;Volvo&lt;/li&gt;
    &lt;li id="3"&gt;Fiat&lt;/li&gt;
    &lt;/ul&gt;



var list = $('#cars').children('li');
    list.sort(function(a,b){
        return parseInt(a.id) &lt; parseInt(b.id);
    });
    $('#cars').append(list);
</code></pre>

<p>​</p>
