From 22b837741897174ffee3bb95aa57a749c1a68b6d Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sat, 21 Sep 2019 22:10:33 +0100 Subject: [PATCH] Flipped the sort order to show the games ordered with the best game to stream displayed first rather than last. --- scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts.js b/scripts.js index d494244..c81aea6 100644 --- a/scripts.js +++ b/scripts.js @@ -99,7 +99,7 @@ function displayData() { // Sort the dataset by the game scores we calculated var orderedStreamDataSet = streamDataSet.sort(function (a, b) { - return a.score - b.score; + return b.score - a.score; }) finalData = orderedStreamDataSet.slice(0,21); // Set to first 21 for testing purposes