There is such a table:
<tbody class="ui-sortable"> <tr data-item="id"> <td> <span data-name="sort" data-value="34" class="dragger ui-sortable-handle"></span> </td> <td> <input type="text" name="name" value=""> </td> </tr> <tr data-item="id"> <td> <span data-name="sort" data-value="36" class="dragger ui-sortable-handle"></span> </td> <td> <input type="text" name="name" value=""> </td> </tr> <tr data-item="id"> <td> <span data-name="sort" data-value="33" class="dragger ui-sortable-handle"></span> </td> <td> <input type="text" name="name" value=""> </td> </tr> <tr data-item="id"> <td> <span data-name="sort" data-value="35" class="dragger ui-sortable-handle"></span> </td> <td> <input type="text" name="name" value=""> </td> </tr> </tbody>
It is necessary to sort the rows in descending order according to the data-value attribute that the span has with the data-name attribute that is inside the row, in the first cell.
How to do it?
ps Plugins and so on. ready solutions are not interesting