Create a list that is can be sorted by dragging ui elements.
var Sortable =var array = 'Apple' 'Banana' 'Cherry' 'Durian' 'ElderBerry'var emitter =//listen to changes (newArray, splices)emitteremitterelement
Change events is the new state of the array, and the splices that changed the array.
template is just a function that takes any thing and returns an
Currently, this depends on jquery UI, which is not ideal, but it works, and it works on mobile.
Dragging goes funny when zoomed on Chrome Android. Be sure to use viewport:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
To disable zoom.