From 9cbb20fb56fe69ee6fe4073f2049835e5be76bb9 Mon Sep 17 00:00:00 2001 From: Sendou Date: Tue, 10 Mar 2020 19:47:44 +0200 Subject: [PATCH] fixed month dropdown options in wrong order maybe --- graphql-schemas/plus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql-schemas/plus.js b/graphql-schemas/plus.js index f1dadd789..32488e08f 100644 --- a/graphql-schemas/plus.js +++ b/graphql-schemas/plus.js @@ -327,7 +327,7 @@ const resolvers = { return Summary.find(searchCriteria) .populate("discord_user") - .sort({ "score.total": "desc", year: "desc", month: "desc" }) + .sort({ year: "desc", month: "desc", "score.total": "desc" }) }, }, Mutation: {