jQuery: sorting of multiple tables based on lowestvalue(marks),
<p>The table is like,How To sorting a table and based on lowestvalue(marks), i done like the following first i want to get the value and second i get the next value and third step is i want to compare the two values.like following,any one can help me please,thankyou</p>

<pre><code>&lt;tab&gt;$(function(){
   var table = &lt;tab&gt;$('#one');
   var sortMarks = function(a,b)
   {
       var aVal = Number(&lt;tab&gt;$(a).find('a.marks').each.text());
       var bVal = Number(&lt;tab&gt;$(b).find('a.marks').each.text());
       return aVal &gt; bVal ? 1 : -1;
   };
   table.find('tr').sort(sortMarks).appendTo(table); // sort       
});
&lt;html&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;
    &lt;table id="one" class="tabl" cellspacing="0" &gt;
    &lt;tbody&gt;
    &lt;tr class="row"&gt;
      &lt;td&gt;&lt;input class="dep" type="radio" name="depart"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a class="marks"&gt;500&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt; 
    &lt;table id="one" class="tabl" cellspacing="0" &gt;
    &lt;tbody&gt;
    &lt;tr class="row"&gt;
      &lt;td&gt;&lt;input class="dep" type="radio" name="depart"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a class="marks"&gt;200&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;table id="one" class="tabl" cellspacing="0" &gt;
    &lt;tbody&gt;
    &lt;tr class="row"&gt;
      &lt;td&gt;&lt;input class="dep" type="radio" name="depart"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a class="marks"&gt;300&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;table id="one" class="tabl" cellspacing="0" &gt;
    &lt;tbody&gt;
    &lt;tr class="row"&gt;
      &lt;td&gt;&lt;input class="dep" type="radio" name="depart"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a class="marks"&gt;400&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
