I want shuffling
<ul class="abc">
<li class="xyz">1</li>
<li class="xyz">2</li>
<li class="xyz">3</li>
<li class="xyz">4</li>
<li class="xyz">5</li>
<li class="xyz">6</li>
<li class="xyz">7</li>
<li class="xyz">8</li>
<li class="xyz">9</li>
<li class="xyz">10</li>
</ul>
I want shuffling like when i refresh first time on UI shows 6,7,8,9,10 or in any order but dont show first 1,2,3,4,5 these shows below the first items. next time when refresh page it shows again 1,2,3,4,5 and now 6,7,8,9,10 under these first list items. i used math.random() function but it not properly work it exchange only 2 or 3 list items. i want a group (1 to 5) exchange positions with 6 to 10 andd again 6 to 10 with 1 to 5 and so on I am also using infinite scroll lazy loading in my website