First of all, if you wish to retrieve the 70 clients, you have to add limit to the query (otherwise it’’ only bring the first 50).
wixData.query("Team")
.limit(70)
.find()
Second, it’s not clear why you run a direct query if you have all the clients in dataset1 ?(which I guess represent the Team collection). It’ll affect the performance.
If I’m right, set dataset1 to have at least 70 items (via the UI editor), get rid of the direct query and instead do:
$w.onReady(function () {
$w("#dataset1").onReady(() => {
$w("#dataset1").getItems(0,100)//or 70 whatever
.then(result => {
let shuffledItems = shuffleArray(result.items);
shuffledItems.length = 16;
$w('#repeater1').data = shuffledItems;
})
})
})
//and continue
(in red it the way to cut the array to the first 16 items.