I have something like this:
1 2 3 <
1 2 3
This should do the trick for you.
var length = $('ul li').length; while (length--) $('ul').append($('ul li')[length]);
Here is a working jsfiddle