function compare(a, b) {
            const scoreOne = a.score;
            const scoreTwo = b.score;

            return scoreTwo - scoreOne;
        }
//Sort array by highest to lowest
Sort array by highest to lowest
Sort array by highest to lowest
function compare(a, b) {
            const scoreOne = a.score;
            const scoreTwo = b.score;
            return scoreTwo - scoreOne;
        }
function compare ( a , b ) { const scoreOne = a . score ; const scoreTwo = b . score ; return scoreTwo - scoreOne ; }
Sort array by highest to lowest
Sort array by highest to lowest