diff --git a/src/notifications.js b/src/notifications.js index 6cc08d997..22044beab 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -129,7 +129,7 @@ async function list(filters, page, perPage) { let query = `SELECT ${NOTIFICATION_FIELDS} FROM notifications`; if (where.length) query += ' WHERE ' + where.join(' AND '); - query += ' ORDER BY creationTime DESC LIMIT ?,?'; + query += ' ORDER BY acknowledged ASC, creationTime DESC LIMIT ?,?'; args.push((page-1)*perPage); args.push(perPage);