sub sort_relevance {
[ sort {
- (eval { $b->topmost->{smsg}->{pct} } // 0) <=>
- (eval { $a->topmost->{smsg}->{pct} } // 0)
+ (eval { $b->topmost->{pct} } // 0) <=>
+ (eval { $a->topmost->{pct} } // 0)
} @{$_[0]} ]
}
my $smsg = eval {
PublicInbox::Smsg::from_mitem($mi, $ctx->{srch});
} or next;
- $ctx->{-inbox}->smsg_mime($smsg) and return $smsg;
+ return $smsg;
}
}