Sort the results for the mod/admin list views

This commit is contained in:
swaggboi 2024-08-15 21:35:29 -04:00
parent 7b618f56cb
commit b586c534ce

View file

@ -156,7 +156,8 @@ sub flagged($self) {
SELECT 'remark', SELECT 'remark',
remark_id remark_id
FROM remarks FROM remarks
WHERE flagged_status; WHERE flagged_status
ORDER BY id DESC;
END_SQL END_SQL
} }
@ -170,7 +171,8 @@ sub hidden($self) {
SELECT 'remark', SELECT 'remark',
remark_id remark_id
FROM remarks FROM remarks
WHERE hidden_status; WHERE hidden_status
ORDER BY id DESC;
END_SQL END_SQL
} }
@ -270,7 +272,8 @@ sub list($self) {
TO_CHAR(last_login_date, $1) AS last_login_date, TO_CHAR(last_login_date, $1) AS last_login_date,
lock_status, lock_status,
admin_status admin_status
FROM moderators; FROM moderators
ORDER BY last_login_date DESC;
END_SQL END_SQL
} }