[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words

Nicole C. Engard nengard at bywatersolutions.com
Mon Feb 21 03:32:22 CET 2011


From: Owen Leonard <oleonard at myacpl.org>


Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 opac/opac-tags.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl
index b98ce40..b5ce340 100755
--- a/opac/opac-tags.pl
+++ b/opac/opac-tags.pl
@@ -293,7 +293,7 @@ if ($add_op) {
 	}
 }
 (scalar @errors  ) and $template->param(ERRORS  => \@errors);
-my @orderedresult = sort { $a->{'term'} cmp $b->{'term'} } @$results;
+my @orderedresult = sort { uc($a->{'term'}) cmp uc($b->{'term'}) } @$results;
 (scalar @$results) and $template->param(TAGLOOP => \@orderedresult );
 (scalar @$my_tags) and $template->param(MY_TAGS => $my_tags);
 
-- 
1.7.2.3



More information about the Koha-patches mailing list