Flipped the sort order to show the games ordered with the best game to stream displayed first rather than last.

This commit is contained in:
Josh Creek
2019-09-21 22:10:33 +01:00
parent d0571c318c
commit 22b8377418
+1 -1
View File
@@ -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