Open
Description
It would be great to add a random option (default false).
I found a likely jQuery randomization function on Stack Overflow
ref: http://stackoverflow.com/questions/14555415/how-to-randomly-sort-list-items
$.fn.randomize = function(selector){
var $elems = selector ? $(this).find(selector) : $(this).children(),
$parents = $elems.parent();
$parents.each(function(){
$(this).children(selector).sort(function(){
return Math.round(Math.random()) - 0.5;
}).detach().appendTo(this);
});
return this;
};
Thanks for the excellent plugin!
Metadata
Metadata
Assignees
Labels
No labels