[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 13 Nov 2004 09:30:27 -0000
albertel Sat Nov 13 04:30:27 2004 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- sort code set saved names
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.336 loncom/interface/lonprintout.pm:1.337
--- loncom/interface/lonprintout.pm:1.336 Sat Nov 13 04:27:47 2004
+++ loncom/interface/lonprintout.pm Sat Nov 13 04:30:26 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.336 2004/11/13 09:27:47 albertel Exp $
+# $Id: lonprintout.pm,v 1.337 2004/11/13 09:30:26 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1703,7 +1703,7 @@
my $cnum = $ENV{'course.'.$ENV{'request.course.id'}.'.num'};
my @names=&Apache::lonnet::getkeys('CODEs',$cdom,$cnum);
my $namechoice='<choice></choice>';
- foreach my $name (@names) {
+ foreach my $name (sort {uc($a) cmp uc($b)} @names) {
if ($name =~ /^error: 2 /) { next; }
$namechoice.='<choice computer="'.$name.'">'.$name.'</choice>';
}