--- loncom/homework/grades.pm 2005/10/01 03:27:44 1.291 +++ loncom/homework/grades.pm 2006/09/22 21:16:14 1.302.2.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.291 2005/10/01 03:27:44 albertel Exp $ +# $Id: grades.pm,v 1.302.2.7 2006/09/22 21:16:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -545,7 +545,13 @@ sub verifyreceipt { if ($env{"course.$courseid.receiptalg"} eq 'receipt2') { $receiptparts=1; } my $parts=['0']; if ($receiptparts) { ($parts)=&response_type($url,$symb); } - foreach (sort {lc($$fullname{$a}) cmp lc($$fullname{$b}) } keys %$fullname) { + foreach (sort + { + if (lc($$fullname{$a}) ne lc($$fullname{$b})) { + return (lc($$fullname{$a}) cmp lc($$fullname{$b})); + } + return $a cmp $b; + } (keys(%$fullname))) { my ($uname,$udom)=split(/\:/); foreach my $part (@$parts) { if ($receipt eq &Apache::lonnet::ireceipt($uname,$udom,$courseid,$symb,$part)) { @@ -698,12 +704,16 @@ LISTJAVASCRIPT while ($loop < 2) { $gradeTable.='