You would add a column in your table to store the sort order, then use something like: https://jqueryui.com/sortable/ to create the drag/sort behavior and submit the changes.
Then you could use MySQLi server behaviors to do the update in the table.
There is no tutorial on this, but it is something I could help with in a premier support ticket.