I have html like this:
<ul id="list">
<li class="item">a</li>
<li class="item">b</li>
<li class="item">c</li>
</ul>
What I'd like to accomplish using jQuery is to have the order rotated. So after one call the resulting html would be:
<ul id="list">
<li class="item">c</li>
<li class="item">a</li>
<li class="item">b</li>
</ul>
And after another ...
<ul id="list">
<li class="item">b</li>
<li class="item">c</li>
<li class="item">a</li>
</ul>
And so on. What is the proper way to accomplish this?