[eluser]MaDe[/eluser]
Hi tmcw,
I'm rather sure (99%) that this is not possible in one statement. You have to update several rows in a way, that can't be expressed by a formula (like: SET ´weight´ = ´weight´ +1) as the user decides the sorting of the list items. Updating multiple rows to "random" values can only be done by updating each row seperately. You might use a foreach loop for that.
I would not concern about the performance issue. If you update only the weight column, that should not have noticable impact on the database as the user will not sort more than 50 item, will he? I would try to do that a different way if I had more than 1,000 updates per page call (but what user will sort a list of 1,000 entries?).
Regards,
MaDe