diff --git a/index.js b/index.js index 9b2178e..7b9cbd0 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ app.get('/', async (req, res, next) => { } const data = await pg.query( - `SELECT "ID", "Timestamp", "Type", "App", "Client", "Message", "Misc", "Stack" FROM "Log"` + `SELECT "ID", "Timestamp", "Type", "App", "Client", "Message", "Misc", "Stack" FROM "Log" ORDER BY "Timestamp" ASC` ); const rows = []; const headings = data.rows.length > 0 ? Object.keys(data.rows[0]) : [];