Function for sorting table
<table>
<thead>
<tr>
<th data-type="number">Rank</th>
<th data-type="string">ID</th>
...
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>btc-bitcoin</td>
...
</tr>
...
</tbody>
</table>
sortTable({option});
{
selector: '.sortTable', // *required
clear: '.clearSort' // default: false
}
- selector - selector your table *required
- clear - selector your button for sorting clear *not required (defaul: false);
- copy html
- copy function
- call function in you js file