Changer la position li dans ul jQuery

Using:
$(li).rollDown();
will move the last element of the set of matched element to the first position.
$(li).rollUp();
will move the 1st element of the set of matched elements to the last position.
Curious Capuchin