diff options
-rwxr-xr-x | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,15 +84,15 @@ catch (Exception $e) | |||
84 | switch ($view) | 84 | switch ($view) |
85 | { | 85 | { |
86 | case 'archive': | 86 | case 'archive': |
87 | $sql = "SELECT * FROM entries WHERE is_read=?"; | 87 | $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; |
88 | $params = array(-1); | 88 | $params = array(-1); |
89 | break; | 89 | break; |
90 | case 'fav' : | 90 | case 'fav' : |
91 | $sql = "SELECT * FROM entries WHERE is_fav=?"; | 91 | $sql = "SELECT * FROM entries WHERE is_fav=? ORDER BY id desc"; |
92 | $params = array(-1); | 92 | $params = array(-1); |
93 | break; | 93 | break; |
94 | default: | 94 | default: |
95 | $sql = "SELECT * FROM entries WHERE is_read=?"; | 95 | $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; |
96 | $params = array(0); | 96 | $params = array(0); |
97 | break; | 97 | break; |
98 | } | 98 | } |