i am using asp table and repeater.i need to sort the data when the table header is clicked. how can i sort the table data when i click the table header? can anyone help me please my html code is as follows
<div class="blue">
<table id="mytable" data-sortable class="table table-hover table-striped">
<thead>
<tr>
<th id="sl">Code</th>
<th id="nm">Name</th>
<th data-sortable="false">Edit</th>
<th data-sortable="false">Delete</th>
</tr>
</thead>
<tbody>
<asp:Repeater runat="server" id="rptArea" >
<ItemTemplate>
<tr>
<td> <strong> <%# Eval("strAreaCode")%></strong></td>
<td> <%# Eval("strAreaName")%></td>
<td>
<div class="btn-group btn-group-xs"><a href="AreaMaster.aspx?strAreaCode=<%# Eval("strAreaCode")%>&Action=Edit" data-toggle="tooltip" title="" data-original-title="Edit"> <i class="fa fa-edit" style="font-size:24px;color:red;"></i> </a>
</div>
</td>
<td>
<div class="btn-group btn-group-xs">
<a href="AreaMaster.aspx?strAreaCode=<%# Eval("strAreaCode")%>&Action=Delete" onclick="return confirm('Are you sure?')" data-toggle="tooltip" title="Delete"> <i class="fa fa-trash" style="font-size:24px;color:green;"> </i> </a>
</div> </td>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>