Don't sort strings with numeric comparison operator...

This commit is contained in:
Martin Kamerbeek 2010-05-07 11:47:33 +02:00
parent aff6b5d5d0
commit 39b27f39c4

View file

@ -115,7 +115,7 @@ sub www_sendTestEmails {
tie my %options, 'Tie::IxHash', (
map { $_->getId => $_->username . "(" . $_->get('email') . ")" }
sort { $a->username <=> $b->username }
sort { $a->username cmp $b->username }
grep { defined $_ }
map { WebGUI::User->new( $session, $_ ) }
@{ $userIds }