Hi GOS,
I managed to solve the problem by adapting a code found for the gallery to the repeater in this way:
$w.onReady( function () {
let data = $w(“#repeater1”).data;
data = shuffle(data);
$w(“#repeater1”).data = data;
});
});
export function shuffle(array) {
for ( let i = array.length - 1; i > 0; i–) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
return array;
}