sorting xml in javascript/jquery
<p>I was trying to sort some xml with jquery, but this code doesn't affect the actual xml or not returning a sorted result.</p>

<p>Anything wrong with this code?</p>

<pre><code>$(xml).find('Tag').get().sort(function(a, b) {
    return $(a).find('Name').text() &lt; $(b).find('Name').text() ? -1 : 1;
});
</code></pre>
