Here is the code I am trying to sort:
CODE
<tr>
<td class='row$row' width="25%"><a href="{ipb.script_url}act=army&userstat={$user['id']}">{$user['name']}</td>
<td class='row$row' width="15%">{$user['rank']}</td>
<td class='row$row' width="10%" align=right>{$user['army']}</td>
<td class='row$row' width="10%">{$user['racename']} <img src='{$user['raceicon']}' border='0' height=28 width=28></td>
<td class='row$row' width="15%" align=right>{$user['money']}</td>
<!--attack--><td class='row$row' width="30%" align=center><b><a href="{ipb.script_url}act=army&CODE=05&ID={$user['id']}">{ipb.lang['atkuser']}</a></b></td><!--attack-->
</tr>
<td class='row$row' width="25%"><a href="{ipb.script_url}act=army&userstat={$user['id']}">{$user['name']}</td>
<td class='row$row' width="15%">{$user['rank']}</td>
<td class='row$row' width="10%" align=right>{$user['army']}</td>
<td class='row$row' width="10%">{$user['racename']} <img src='{$user['raceicon']}' border='0' height=28 width=28></td>
<td class='row$row' width="15%" align=right>{$user['money']}</td>
<!--attack--><td class='row$row' width="30%" align=center><b><a href="{ipb.script_url}act=army&CODE=05&ID={$user['id']}">{ipb.lang['atkuser']}</a></b></td><!--attack-->
</tr>
The things that need to be sorted are: 'name', 'army', 'money'.
Want to sort 'rank' by default, which is how the code/database is already set. Then when user wants to sort use above in a javascript.

