On page load, I am randomizing the order of the children divs with this Code:
function reorder() {
var grp = $(\"#team-posts\").children();
var cnt = g
Just give each item a class with the corresponding order and then get the class name of each div and save it to a variable
$("#team-posts div").each(function() {
var parseIntedClassname = parseInt($(this).attr("class");
arrayName[parseIntedClassname] = $("#team-posts div." + parseIntedClassname).html()
});
You can reorder them from there by saving their html to an array in order
$("#team-posts").html();
for(var i=0;i'+arrayName[i]+'