From: nicosomb Date: Mon, 8 Apr 2013 08:54:30 +0000 (+0200) Subject: tri descendant des articles X-Git-Tag: 0.1~62 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=0772c48b47c78ec0e5bbddfb75d76263d6032af8;p=github%2Fwallabag%2Fwallabag.git tri descendant des articles --- diff --git a/index.php b/index.php index 887326d1..d95e73df 100755 --- a/index.php +++ b/index.php @@ -84,15 +84,15 @@ catch (Exception $e) switch ($view) { case 'archive': - $sql = "SELECT * FROM entries WHERE is_read=?"; + $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; $params = array(-1); break; case 'fav' : - $sql = "SELECT * FROM entries WHERE is_fav=?"; + $sql = "SELECT * FROM entries WHERE is_fav=? ORDER BY id desc"; $params = array(-1); break; default: - $sql = "SELECT * FROM entries WHERE is_read=?"; + $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; $params = array(0); break; }