Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words
authorOwen Leonard <oleonard@myacpl.org>
Mon, 21 Feb 2011 02:32:22 +0000 (21:32 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 27 Feb 2011 21:38:29 +0000 (10:38 +1300)
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-tags.pl

index b98ce40..b5ce340 100755 (executable)
@@ -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);