我有一个表,我想根据每行中隐藏输入的值进行排序。输入始终为数字,位于第三列。我想按降序排序。这是表格的一个示例。谢谢!
<table class="sortMe">
<thead>
<tr>
<th class="col-cat">Category</th>
<th class="col-title">Title</th>
<th class="col-id"></th>
</tr>
</thead>
<tbody>
<tr>
<td class="col-cat">Article Category</td>
<td class="col-title">Article Title 1</td>
<td class="col-id">
<input type="hidden" name="id[]" value="1250">
</td>
</tr>
<tr>
<td class="col-cat">Article Category</td>
<td class="col-title">Article Title 2</td>
<td class="col-id">
<input type="hidden" name="id[]" value="426">
</td>
</tr>
<tr>
<td class="col-cat">Article Category</td>
<td class="col-title">Article Title 2</td>
<td class="col-id">
<input type="hidden" name="id[]" value="35621">
</td>
</tr>
</tbody>