I have a dynamic list that I am trying to switch the current order on. In this example it is 1,2,3 I am trying to make it 3,2,1
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
If it was not dynamic i would use $('li:first').before('li:last')
a couple times but the number of elements is always changing, is there a simple way to accomplish this?