So what does it do?
- Sorts any items in any container
- Fully supports nested containers
- Connect lists
- Callbacks and events (see docs)
- Pure drag/drop lists
- Vertical and horizontal sorting
Why another sortable plugin?
you might ask. Aren’t there many others?
The answer is: nested lists. None of the other solutions had a decent support for nested lists. nestedSortable relies on a fixed width hierarchy. Others mimic the way jQuery UI does sortables and therefore require ugly hacks that suffer from sudden jumps.
The opinionated part
This plugin does one and only one thing: sorting . If you need animations or autoscrolling, do them yourself .
Moreover this plugin assumes that the placeholder has zero height/width. As a result, the item dimensions may be cached. This might change in the future, if need be.
jquery-sortable.js has been tested with the following browsers
- Firefox >= 3.5
- IE > 7
- Safari >= 6
If you confirmed, that it works on other browsers please tell me .
Show it to me! With default options.
Heads Up! There is no on-the-fly creation of sublists. Only list items that contain a sublist are drop targets.
Making a list sortable consists of 3 easy steps