X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fconfiguration.pl;h=bb845456e8c604ac3ee6e460a6f341b953ee3515;hb=dc016a0633cdb15d29b9a71fdec2c230fbad201b;hp=f2f296e585ec7288685df9c94e958ddcccfca4cb;hpb=cd5a9bf8711c676352b647705008bc59d66a354a;p=spider.git diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index f2f296e5..bb845456 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -9,18 +9,18 @@ my ($self, $line) = @_; my @list = map { uc } split /\s+/, $line; # list of callsigns of nodes my @out; -my @nodes = (DXNode::get_all()); +my @nodes = sort {$a->call cmp $b->call} (DXNode::get_all()); my $node; my @l; my @val; push @out, "Node Callsigns"; if ($list[0] && $list[0] =~ /^NOD/) { - my @ch = DXProt::get_all_ak1a(); + my @ch = sort {$a->call cmp $b->call} DXChannel::get_all_nodes(); my $dxchan; foreach $dxchan (@ch) { - @val = grep { $_->dxchan == $dxchan } @nodes; + @val = sort {$a->call cmp $b->call} grep { $_->dxchan == $dxchan } @nodes; my $call = $dxchan->call; $call = "($call)" if $dxchan->here == 0; @l = (); @@ -50,7 +50,7 @@ if ($list[0] && $list[0] =~ /^NOD/) { @l = (); push @l, $call; my $nlist = $node->list; - @val = values %{$nlist}; + @val = sort {$a->call cmp $b->call} values %{$nlist}; my $i = 0; if (@val == 0 && $node->users) {