lib/PublicInbox/NNTPD.pm | 2 +- diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index 2c84fb3004f1271702c04a4cfda484b50d8d3386..fc26c5c0b812c18875ae2370b3efbb701b31dc98 100644 --- a/lib/PublicInbox/NNTPD.pm +++ b/lib/PublicInbox/NNTPD.pm @@ -51,7 +51,7 @@ $new->{$g} = $ng; push @list, $ng; } } - @list = sort { $a->{name} cmp $b->{name} } @list; + @list = sort { $a->{newsgroup} cmp $b->{newsgroup} } @list; $self->{grouplist} = \@list; # this will destroy old groups that got deleted %{$self->{groups}} = %$new;