mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-02 05:51:20 +00:00
tri descendant des articles
This commit is contained in:
parent
7eca3552c8
commit
0772c48b47
1 changed files with 3 additions and 3 deletions
|
@ -84,15 +84,15 @@ catch (Exception $e)
|
||||||
switch ($view)
|
switch ($view)
|
||||||
{
|
{
|
||||||
case 'archive':
|
case 'archive':
|
||||||
$sql = "SELECT * FROM entries WHERE is_read=?";
|
$sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
|
||||||
$params = array(-1);
|
$params = array(-1);
|
||||||
break;
|
break;
|
||||||
case 'fav' :
|
case 'fav' :
|
||||||
$sql = "SELECT * FROM entries WHERE is_fav=?";
|
$sql = "SELECT * FROM entries WHERE is_fav=? ORDER BY id desc";
|
||||||
$params = array(-1);
|
$params = array(-1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$sql = "SELECT * FROM entries WHERE is_read=?";
|
$sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
|
||||||
$params = array(0);
|
$params = array(0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue