Let\'s say I have an unordered list, like this:
Bald Eagle Falcon Condor<
var birds = document.getElementById('birds'); for(var i = 0, bll = birds.childNodes.length; i < bll; i++) { birds.insertBefore(birds.childNodes[i], birds.firstChild); }