]> git.wh0rd.org Git - tt-rss.git/commitdiff
update feeds by last_updated DESC
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Dec 2005 17:59:19 +0000 (18:59 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Dec 2005 17:59:19 +0000 (18:59 +0100)
functions.php

index b54789fa2fb40996b3b70fbc84361efb897401e1..80fed8e3b3ac74bc1b2b5fd1420cedb04b41f5bf 100644 (file)
 
                $result = db_query($link, "SELECT feed_url,id,
                        substring(last_updated,1,19) as last_updated,
-                       update_interval FROM ttrss_feeds WHERE owner_uid = '$user_id'");
+                       update_interval FROM ttrss_feeds WHERE owner_uid = '$user_id'
+                       ORDER BY last_updated DESC");
 
                while ($line = db_fetch_assoc($result)) {
                        $upd_intl = $line["update_interval"];