Disclaimer: I placed this topic as best i could, it's kind of a question / problem for using ui and idea for developing it so I stuck it here
I started out with the goal of making a nice interface for the user to determine sorting order in a page i was developing, but ran into problems making buttons sortable:
http://jsfiddle.net/Assimilater/vXHbc/3/Problem: It turns out that, i guess, there are some complications with events of form elements (like input of type button and button).
Question: After some time in the IRC channel today the best solution I came up with was this:
http://jsfiddle.net/Assimilater/vXHbc/12/. However the spacing gets a bit funky and the highlighting is far from ideal (secondary problem).
Idea: realizing that I have little concept for what difficulty there is in making sortables work for buttons, I would like to suggest it as a bug fix if all goes well here. I'm not confident enough with the ticket system yet to feel like submitting it myself (lot of fields and i haven't read very many yet and if you're sick of that lame excuse It's late and i'm going to bed now that it's done

)
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.