about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-10-05 23:47:28 +0000
committerEric Wong <e@80x24.org>2016-10-05 23:53:35 +0000
commit3c9dd6619f825f0515e7e4afa1bd55c99c1a68d3 (patch)
tree60c997b670ccd6b7a1fc10aa46232f86afa4e3da /lib/PublicInbox/View.pm
parent728d8dbcb920cd19f2fe4d7479d770c540274690 (diff)
downloadpublic-inbox-3c9dd6619f825f0515e7e4afa1bd55c99c1a68d3.tar.gz
This bug was hidden, and we may not be able to efficiently
implement a topmost subroutine with the hash-based (vs
linked-list) based container for threading in the next
commit.
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 7554d54f..c09b4a22 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -857,8 +857,8 @@ sub skel_dump {
 
 sub sort_ts {
         [ sort {
-                (eval { $a->topmost->{smsg}->ts } || 0) <=>
-                (eval { $b->topmost->{smsg}->ts } || 0)
+                (eval { $a->{smsg}->ts } || 0) <=>
+                (eval { $b->{smsg}->ts } || 0)
         } @{$_[0]} ];
 }