Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:(function() { var threads = document.getElementById('threads'); var key = function(i) { return parseInt(threads.children[i].children[0].id.split('_')[1]); }; for (var i=1, l=threads.children.length; i<l; ++i) { for (var j=i, k=key(i); (j>0) && (k>key(j-1)); --j); threads.insertBefore(threads.children[i], threads.children[j]); }})()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement