--- loncom/interface/lonstatistics.pm 2005/04/07 07:34:52 1.124 +++ loncom/interface/lonstatistics.pm 2005/12/13 16:25:32 1.126 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.124 2005/04/07 07:34:52 albertel Exp $ +# $Id: lonstatistics.pm,v 1.126 2005/12/13 16:25:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -197,8 +197,8 @@ sub PrepareClasslist { my $cid = $env{'request.course.id'}; my $cdom = $env{'course.'.$cid.'.domain'}; my $cnum = $env{'course.'.$cid.'.num'}; - my ($classlist,$field_names) = &Apache::loncoursedata::get_classlist($cid, - $cdom,$cnum); + my ($classlist,$field_names) = &Apache::loncoursedata::get_classlist($cdom, + $cnum); my @selected_sections = &get_selected_sections(); # # Deal with instructors with restricted section access @@ -268,7 +268,8 @@ sub PrepareClasslist { my $sortby = 'fullname'; $sortby = $env{'form.sort'} if (exists($env{'form.sort'})); my @TmpStudents = sort { $a->{$sortby} cmp $b->{$sortby} || - $a->{'fullname'} cmp $b->{'fullname'} } @Students; + lc($a->{'fullname'}) cmp lc($b->{'fullname'}) || + lc($a->{'username'}) cmp lc($b->{'username'}) } @Students; @Students = @TmpStudents; # # Now deal with that current student thing....