From 9bf62c59e520beb992e0640dcbe7db9ef8597c4a Mon Sep 17 00:00:00 2001 From: "@wwwjim" Date: Thu, 3 Dec 2020 00:58:52 -0800 Subject: [PATCH] orders stats --- node_common/data/methods/get-all-stats.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_common/data/methods/get-all-stats.js b/node_common/data/methods/get-all-stats.js index 9484a7d6..faf52c04 100644 --- a/node_common/data/methods/get-all-stats.js +++ b/node_common/data/methods/get-all-stats.js @@ -6,7 +6,9 @@ export default async () => { return await runQuery({ label: "GET_ALL_STATS", queryFn: async (DB) => { - const r = await DB.select("*").from("stats"); + const r = await DB.select("*") + .from("stats") + .orderBy("created_at"); if (!r || r.error) { return [];