X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FUs.pm;h=0a2e78a953d0088b6976f0b799580a14c2bb58a7;hb=62a11450f67a549eb1e16f338f6fd97c6c346493;hp=2095fd55aaf0963b1511b60bdaa0b394d4712b26;hpb=bb95f538bf263c0294d87cfb90d58c66117b9aab;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Us.pm b/lib/Gruntmaster/Page/Us.pm index 2095fd5..0a2e78a 100644 --- a/lib/Gruntmaster/Page/Us.pm +++ b/lib/Gruntmaster/Page/Us.pm @@ -9,15 +9,17 @@ our $VERSION = '0.001'; use constant TEMPLATES => { en => <<'HTML', - +
  1. +
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