use constant TEMPLATES => {
en => <<'HTML',
-<ul><tmpl_loop users><li><a href="<tmpl_var id>.var"><tmpl_var name></a>
-</tmpl_loop></ul>
+<ol><tmpl_loop users><li><a href="<tmpl_var id>.var"><tmpl_var name></a>
+</tmpl_loop></ol>
HTML
};
sub _generate{
my ($self, $htc, $path, $lang) = @_;
- $htc->param(users => [ map { {id => $_, name => user_name} } users ]);
+ $htc->param(users => [ sort { lc $a->{name} cmp lc $b->{name} }
+ map { {id => $_, name => user_name} }
+ grep { user_name =~ /\w/ } users ]);
}
1