Sortables
The call to the javascript function needs to bind to the outside element of the draggable items in this case to the list record id and each element needs to have the database id (or some other unique string that can help identify the elements once the sort is done).
This sort uses an handle, meaning that the user must use the handle to drag-n-drop the elements and perform the sort.
3 records
Click here to see your activities