jQuery.fn.reorder = function() {
 
  // random array sort from
  // http://javascript.about.com/library/blsort2.htm
  function randOrd() { return(Math.round(Math.random())-0.5); }
 
  return(jQuery(this).each(function() {
    var jQuerythis = jQuery(this);
    var jQuerychildren = jQuerythis.children();
    var childCount = jQuerychildren.length;
 
    if (childCount > 1) {
      jQuerychildren.remove();
 
      var indices = new Array();
      for (i=0;i<childCount;i++) { indices[indices.length] = i; }
      indices = indices.sort(randOrd);
      jQuery.each(indices,function(j,k) { jQuerythis.append(jQuerychildren.eq(k)); });
 
    }
  }));
}
