about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-01 08:55:20 +0000
committerEric Wong <e@80x24.org>2015-09-01 08:56:00 +0000
commitbf1b1457367db6a9c7ba1ad974eda75106733ed8 (patch)
treeb96fcf953b05c465c704f29534b4c16a2c04eaa7 /lib/PublicInbox/Search.pm
parent3147d1e4672aee4665af8ca18b9f8f9100236ff9 (diff)
downloadpublic-inbox-bf1b1457367db6a9c7ba1ad974eda75106733ed8.tar.gz
Like revision control history, older stuff is less relevant,
so favor newer stuff, first.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 831c4fd7..8b32ef38 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -115,9 +115,9 @@ sub do_enquire {
         }
         $enquire->set_query($query);
         if ($opts->{relevance}) {
-                $enquire->set_sort_by_relevance_then_value(TS, 0);
+                $enquire->set_sort_by_relevance_then_value(TS, 1);
         } else {
-                $enquire->set_sort_by_value(TS, 0);
+                $enquire->set_sort_by_value(TS, 1);
         }
         $opts ||= {};
         my $offset = $opts->{offset} || 0;