]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NNTPD.pm
nntpd: avoid uninitialized warning
[public-inbox.git] / lib / PublicInbox / NNTPD.pm
index 2c84fb3004f1271702c04a4cfda484b50d8d3386..fc26c5c0b812c18875ae2370b3efbb701b31dc98 100644 (file)
@@ -51,7 +51,7 @@ sub refresh_groups () {
                        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;