]> git.wh0rd.org Git - tt-rss.git/commitdiff
revert to sorting by updated instead of date_entering unless Date sorting is requested
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Oct 2010 05:36:16 +0000 (09:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Oct 2010 05:36:16 +0000 (09:36 +0400)
backend.php
functions.php

index 06c1ecbd96b20080c6581be1dbfddb41b0c349ed..2dd3c5c9b5bb7ffa99bd171a6706d4e5176b8034 100644 (file)
 
                                case "title":
                                        if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
-                                               $override_order = "title DESC, date_entered";
+                                               $override_order = "title DESC, updated";
                                        } else {
-                                               $override_order = "title, date_entered DESC";
+                                               $override_order = "title, updated DESC";
                                        }
                                        break;
 
                                case "score":
                                        if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
-                                               $override_order = "score, date_entered";
+                                               $override_order = "score, updated";
                                        } else {
-                                               $override_order = "score DESC, date_entered DESC";
+                                               $override_order = "score DESC, updated DESC";
                                        }
                                        break;
                        }
index c933ca07558dbf14bcd5c56d58e24589b6bd8136..dda8d894fd8e49e4dd3cba0bb022ec18f8b21f00 100644 (file)
                        }
 
                        if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
-                               $order_by = "date_entered";
+                               $order_by = "updated";
                        } else {        
-                               $order_by = "date_entered DESC";
+                               $order_by = "updated DESC";
                        }
 
                        if ($view_mode != "noscores") {