Sortables
To sort on a table record it's pretty much the same, but you need to set the IsTableRecord input parameter to true. Why? Because tables normally have an inner wrapping element of its table rows, the table body (tbody) and that's where we need to bind the script.
The TR is our sortable html element, so we define the nid=item_id on the TR extended properties.
In this example we didn't define a specific handle which means the entire row is draggable.
Name
Order
Element One
1
Element Three
3
Element Two
4
3 records
Click here to see your activities