From b9edc45e10f7ee22c39858c488f98fab436c6675 Mon Sep 17 00:00:00 2001 From: Hiroyuki Date: Tue, 23 Mar 2021 20:10:39 -0400 Subject: [PATCH] Pagination sorting fix --- src/api/board.ins/routes/root.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/board.ins/routes/root.ts b/src/api/board.ins/routes/root.ts index 854c13c..b0e5876 100644 --- a/src/api/board.ins/routes/root.ts +++ b/src/api/board.ins/routes/root.ts @@ -182,6 +182,8 @@ export default class Root extends Route { }); } + returned.sort((a, b) => a.at - b.at); + const total = counts.eo + counts.motion + counts.proc + counts.resolution; res.status(200).json({