In order to move the last element of the first position within the container we can use prepend jQuery command.

Please see the following examples :

 

<ul class="list-container">
<li>first item will go to the end</li>
<li>second item</li>
<li>....</li>
<li>the last item</li>
<ul>

 

$('ul.list-container').prepend($('ul.list-container > li:last'));