diff options
author | Eric Wong <e@80x24.org> | 2016-10-14 09:00:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-10-14 21:12:42 +0000 |
commit | 123031737a09edb3297e0fc6ea9e566fc2fecdf5 (patch) | |
tree | 18324713168c363c29ed6b2d918f637184dad1d6 /lib/PublicInbox/View.pm | |
parent | f2b07568e623c2a0aff4d0135617a26c887d2755 (diff) | |
download | public-inbox-123031737a09edb3297e0fc6ea9e566fc2fecdf5.tar.gz |
This reverts commit 3c9dd6619f825f0515e7e4afa1bd55c99c1a68d3 ("thread: fix sorting without topmost") and reinstates the "topmost" routine for sorting purposes.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 0f00458e..5d5808fa 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -852,8 +852,8 @@ sub skel_dump { sub sort_ts { [ sort { - (eval { $a->{smsg}->ts } || 0) <=> - (eval { $b->{smsg}->ts } || 0) + (eval { $a->topmost->{smsg}->ts } || 0) <=> + (eval { $b->topmost->{smsg}->ts } || 0) } @{$_[0]} ]; } |