A drag and drop demo that resembles card drag and drop in Trello in just a few lines of code.
This is descended from this blog post by Bruce Hubbard at Differential which itself is based on the original demo by Avital Oliver.
The ranking mechanism is not robust for heavy use (what if you drag elements to the top of the list over and over?). For an improved version of the same concept, see this example.