i have this global template:
sub {
my $tags = GT::Template->tags;
my $home = $tags->{home};
my $sth = $home->{sql}->table($home->{cfg}->{'user_table_use'})->select();
my @output;
while ( my $rs = $sth->fetchrow_hashref ) {
push @output, $rs;
}
return { loop_users => \@output };
}
i would like it sorted alphabetically. how? thanks
sub {
my $tags = GT::Template->tags;
my $home = $tags->{home};
my $sth = $home->{sql}->table($home->{cfg}->{'user_table_use'})->select();
my @output;
while ( my $rs = $sth->fetchrow_hashref ) {
push @output, $rs;
}
return { loop_users => \@output };
}
i would like it sorted alphabetically. how? thanks