about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index f58099d4..ebe82b49 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -726,7 +726,7 @@ sub msg_timestamp {
 }
 
 sub thread_results {
-        my ($msgs, $nosubject) = @_;
+        my ($msgs, $nosubject, $nosort) = @_;
         require PublicInbox::Thread;
         my $th = PublicInbox::Thread->new(@$msgs);
 
@@ -740,7 +740,7 @@ sub thread_results {
         # Keep ghosts with only a single direct child:
         $Mail::Thread::noprune = 1;
         $th->thread;
-        $th->order(*sort_ts);
+        $th->order(*sort_ts) unless $nosort;
         $th
 }