Need to sort a table based on attribute value
<p>I have a table with multiple values and table values are moved from one table to another. When it returns to initial table then I need to sort this table based on the alphabetical order.</p>

<p>I am using this code but it doesn't work for me:</p>

<pre><code>    var aa = $("#unSelectedTab").find('td');
    var abc = '';
    for (var i = 0; i &lt; aa.length; i++) {
        abc += aa[i].attr("id");
    }
</code></pre>
