aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xindex.php6
1 files changed, 3 insertions, 3 deletions
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)
84switch ($view) 84switch ($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}