mirror of
https://github.com/jcreek/what-games-should-I-stream.git
synced 2026-07-13 02:43:46 +00:00
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:
+1
-1
@@ -99,7 +99,7 @@ function displayData() {
|
|||||||
|
|
||||||
// Sort the dataset by the game scores we calculated
|
// Sort the dataset by the game scores we calculated
|
||||||
var orderedStreamDataSet = streamDataSet.sort(function (a, b) {
|
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
|
finalData = orderedStreamDataSet.slice(0,21); // Set to first 21 for testing purposes
|
||||||
|
|||||||
Reference in New Issue
Block a user