NOTE: For this example to work you have to run it in a web server context. This is a simple example showing how you can reorder your tasks easily using drag and drop in the tree section.
Note that the js for the example code is not minified so it is readable. See reorder.js.