Ok, all of you who aren't php programmers, but read my blog anyways (Mom!), click here and notice that if you mouse over the thumbnails you can click on them and drag them around (assuming you have a modern browser at least. And no the save button doesn't work, this is just a static copy of one of the editors for blueCMS).. Cool though huh... Alright, that's it, you can stop reading now.
Still here? You must be here for the code. Before I throw it at you though, let me explain what it does. I extended QuickForm to create an element (HTML_QuickForm_Sorter) that accepts an array and generates two elements. The first is a hidden element that stores the indexes of the array as a comma separated list. The second is a unordered list with list elements that encode the array index in their id and display whatever was in the array element in the list.