Setting a PHP variable from re-sorted list

Setting a PHP variable from re-sorted list

I'm trying to create a Netflix-queue kind of thing on a PHP/MySQL
website. So, what I want to do is have the user drag the list items
around to create their desired sort order. When they hit submit, it
will update the MySQL database with the updated sort order. I've got a
column in my table for the sort number.
How do I use the sortable behavior to have it set the sort variable
according to the displayed order?
Thanks,
PirateLenny
--