[LON-CAPA-cvs] cvs: loncom /interface lonpickcourse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 02 Feb 2006 17:57:40 -0000
albertel Thu Feb 2 12:57:40 2006 EDT
Modified files:
/loncom/interface lonpickcourse.pm
Log:
- restore case-insesitive soriting (while preserving case at duisplay time)
Index: loncom/interface/lonpickcourse.pm
diff -u loncom/interface/lonpickcourse.pm:1.38 loncom/interface/lonpickcourse.pm:1.39
--- loncom/interface/lonpickcourse.pm:1.38 Wed Feb 1 17:46:09 2006
+++ loncom/interface/lonpickcourse.pm Thu Feb 2 12:57:40 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Pick a course
#
-# $Id: lonpickcourse.pm,v 1.38 2006/02/01 22:46:09 www Exp $
+# $Id: lonpickcourse.pm,v 1.39 2006/02/02 17:57:40 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -301,7 +301,8 @@
onclick="javascript:uncheckAll(document.courselist.course_id)" />
<br /><br />');
}
- foreach my $description (sort(keys(%by_descrip))) {
+ foreach my $description (sort
+ { lc($a) cmp lc($b) } (keys(%by_descrip))) {
foreach my $course (@{$by_descrip{$description}}) {
my $cleandesc=&HTML::Entities::encode($description,'<>&"');
$cleandesc=~s/'/\\'/g;