From: Mischa POSLAWSKY Date: Sun, 20 Oct 2019 04:07:07 +0000 (+0200) Subject: issue: order by last update, changed on reply X-Git-Tag: v4.2~32 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/c824b14c0f6fb372ca4e72fe244b3aade6c29541?ds=sidebyside issue: order by last update, changed on reply Initial value determined by: UPDATE issues SET updated = greatest(created, closed, ( SELECT max(created) FROM comments WHERE page = issues.link )); --- diff --git a/issue/index.php b/issue/index.php index d8f9c26..2c50624 100644 --- a/issue/index.php +++ b/issue/index.php @@ -39,7 +39,7 @@ if ($_POST) { $_POST = []; } -$query = $Db->query('SELECT * FROM issues ORDER BY created DESC'); +$query = $Db->query('SELECT * FROM issues ORDER BY updated DESC'); ob_start(); print '