I'm using a table with the structure
<table cellspacing="0" cellpadding="3" rules="cols" border="1" id="ctl00_Content_GrdCustomer" style="color:Black;border-color:#999999;width:640px;border-collapse:collapse;">
<tr style="color:White;background-color:Black;font-weight:bold;">
<th scope="col">Something</th>
<th scope="col">Client Name</th>
<th scope="col">Address</th>
<th scope="col">Place</th>
<th scope="col">City</th>
<th scope="col">Country</th>
</tr>
<tr class="home-history-grid-row customerData">
<td align="center" style="width:50px;"><!--Checkbox Goes Here--></td>
<td align="center">Raju Varghese</td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center">Country4</td>
</tr>
<tr class="home-history-grid-row customerData">
<td align="center" style="width:50px;"><!--Checkbox Goes Here--></td>
<td align="center">Joseph K. J</td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center">Country4</td>
</tr>
</table>
I need to sort the table based on the 'th' with header 'Client Name'. Gone through so many links and all are sorting based on header clicks and i dont know javascript much. Kindly help