about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchThread.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/SearchThread.pm')
-rw-r--r--lib/PublicInbox/SearchThread.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchThread.pm b/lib/PublicInbox/SearchThread.pm
index cc8c90ce..00ae9fac 100644
--- a/lib/PublicInbox/SearchThread.pm
+++ b/lib/PublicInbox/SearchThread.pm
@@ -167,7 +167,7 @@ sub order_children {
         while (defined($cur = shift @q)) {
                 # the {children} hashref here...
                 my @c = grep { !$seen{$_}++ && visible($_, $ibx) }
-                        values %{$cur->{children}};
+                        values %{delete $cur->{children}};
                 $ordersub->(\@c) if scalar(@c) > 1;
                 $cur->{children} = \@c; # ...becomes an arrayref
                 push @q, @c;