Let\'s say I have an unordered list, like this:
Bald Eagle Falcon Condor<
Untested, but try:
var parent = document.getElementById("birds"); var birdList = parent.getElementsByTagName("li"); for(var i = birdList.length-1; i > 0; --i) { parent.appendChild(birdList[i]; }