about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-05 07:22:55 +0000
committerEric Wong <e@80x24.org>2015-09-05 07:22:55 +0000
commit2b0965c35b2eebcfec790deba3232f8103813d09 (patch)
treed641bafa2a1306caba298206a9370408622f0d22 /lib
parent6f9221f76521c8c55356a744bd31dc1fee753b93 (diff)
downloadpublic-inbox-2b0965c35b2eebcfec790deba3232f8103813d09.tar.gz
Might as well give relevance some weight if the timestamp is tied.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index fd79b63f..1874ee9d 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -118,7 +118,7 @@ sub do_enquire {
         if ($opts->{relevance}) {
                 $enquire->set_sort_by_relevance_then_value(TS, 1);
         } else {
-                $enquire->set_sort_by_value(TS, 1);
+                $enquire->set_sort_by_value_then_relevance(TS, 1);
         }
         $opts ||= {};
         my $offset = $opts->{offset} || 0;