Randomize order button in repeater

It is possible with code

Try this (replacing datasetName with the ID of your dataset):

$w.onReady(function (){
$w("#datasetName").onReady(()=>{
const shuffledArray = shuffleArray(result.items);
                    $w('#datasetName').data = shuffledArray;
})
});


function getRandomIndex(min, max) {
    return Math.round(Math.random() * (max - min) + min);
}

function shuffleArray(dataArray) {

    for (let i = dataArray.length - 1; i > 0; i--) {
        let index = getRandomIndex(0, i);
        const temp = dataArray[i];
        dataArray[i] = dataArray[index];
        dataArray[index] = temp;
    }

    return dataArray;
}

If you need any help, let me know :facepunch: