diff --git a/server/logic/match_logic.js b/server/logic/match_logic.js index 9fdc3d8..b055366 100644 --- a/server/logic/match_logic.js +++ b/server/logic/match_logic.js @@ -60,7 +60,7 @@ function getMatchesByTime (time, amountOfMatches, stage) { { 'startTime': { $gt: new Date(time) } }, { 'stage': stageToQuery } ] - }).limit(amountOfMatches).toArray() + }).sort({ 'startTime': 1 }).limit(amountOfMatches).toArray() }) }