--- loncom/homework/grades.pm 2004/05/14 19:15:49 1.200
+++ loncom/homework/grades.pm 2004/05/14 20:26:22 1.201
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.200 2004/05/14 19:15:49 albertel Exp $
+# $Id: grades.pm,v 1.201 2004/05/14 20:26:22 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3428,7 +3428,7 @@ sub scantron_uploads {
my @files=&Apache::lonnet::dirlist('userfiles',$cdom,$cname,
&Apache::loncommon::propath($cdom,$cname));
$result.="";
- foreach my $filename (@files) {
+ foreach my $filename (sort(@files)) {
($filename)=split(/&/,$filename);
if ($filename!~/^scantron_orig_/) { next ; }
$filename=~s/^scantron_orig_//;
@@ -3457,7 +3457,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 (@names) {
+ foreach my $name (sort(@names)) {
if ($name =~ /^error: 2 /) { next; }
$namechoice.='';
}