$.fn.reorder=function(){function a(){return(Math.round(Math.random())-0.5)}return($(this).each(function(){var d=$(this);var c=d.children();var b=c.length;if(b>1){c.remove();var e=new Array();for(i=0;i<b;i++){e[e.length]=i}e=e.sort(a);$.each(e,function(g,f){d.append(c.eq(f))})}}))};