title: How to sort a random div order in jQuery?
body: <p>On page load, I am randomizing the order of the children divs with this Code:</p>
  
  <pre><code>function reorder() {
     var grp = $("#team-posts").children();
     var cnt = grp.length;
  
     var temp, x;
     for (var i = 0; i &lt; cnt; i++) {
         temp = grp[i];
         x = Math.floor(Math.random() * cnt);
         grp[i] = grp[x];
         grp[x] = temp;
     }
     $(grp).remove();
     $("#team-posts").append($(grp));
  }
  </code></pre>
  
  <p>I cannot seem to figure out how to get the posts back in the original order. Here's the demo of my current code <a href="http://jsfiddle.net/JsJs2/" rel="nofollow">http://jsfiddle.net/JsJs2/</a></p>