diff options
author | Eric Wong <e@80x24.org> | 2015-09-05 07:22:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-05 07:22:55 +0000 |
commit | 2b0965c35b2eebcfec790deba3232f8103813d09 (patch) | |
tree | d641bafa2a1306caba298206a9370408622f0d22 /lib/PublicInbox | |
parent | 6f9221f76521c8c55356a744bd31dc1fee753b93 (diff) | |
download | public-inbox-2b0965c35b2eebcfec790deba3232f8103813d09.tar.gz |
Might as well give relevance some weight if the timestamp is tied.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/Search.pm | 2 |
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; |