--- loncom/homework/grades.pm 2004/11/06 01:11:38 1.224 +++ loncom/homework/grades.pm 2004/11/13 09:32:49 1.225 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.224 2004/11/06 01:11:38 albertel Exp $ +# $Id: grades.pm,v 1.225 2004/11/13 09:32:49 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3474,7 +3474,7 @@ sub scantron_CODElist { my $cnum = $ENV{'course.'.$ENV{'request.course.id'}.'.num'}; my @names=&Apache::lonnet::getkeys('CODEs',$cdom,$cnum); my $namechoice=''; - foreach my $name (sort(@names)) { + foreach my $name (sort {uc($a) cmp uc($b)} @names) { if ($name =~ /^error: 2 /) { next; } $namechoice.=''; }