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 [];