]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiQuery.pm
lei q: avoid redundant default setting for sort with l2m
[public-inbox.git] / lib / PublicInbox / LeiQuery.pm
index 5376c7f8db5b97f48f3fb505b03e34890d064e3e..3a437bf0030842c291c572af7301ff6c11b28a57 100644 (file)
@@ -128,8 +128,8 @@ sub lei_q {
                        die "unrecognized --sort=$sort\n";
                }
        }
-       # descending docid order
-       $mset_opt{relevance} //= -2 if $opt->{threads};
+       # descending docid order is cheapest, MUA controls sorting order
+       $mset_opt{relevance} //= -2 if $self->{l2m} || $opt->{threads};
        $self->{mset_opt} = \%mset_opt;
 
        if ($opt->{stdin}) {