var mysort = new Fx.Sort($$('ul li'), {
transition: Fx.Transitions.Back.easeInOut,
duration: 1000});
mysort.sort([2,0,1]); //a specific order
mysort.forward(); //forward (the original) order
Note
Fx.Sort does not, by default, reorder the DOM; it just puts the elements into x/y locations that imply the sort, but their location in the DOM remains unless you execute Fx.Sort:rearrangeDOM.
If you pass it an incomplete order Fx.Sort will fill in the rest with the current sort. For example, if the current sort is 0,1,2, and you execute mySort.sort(1), the result will be 1,0,2.
Sort by the order specified in a collection of elements; elements must be an array (collection) of the elements within the elements specified at instantiation.
Syntax
mySort.sortByElements(elements);
Arguments
elements - (array or collection) a collection or array of elements in the new order