--- loncom/interface/loncreateuser.pm 2006/08/11 21:55:19 1.129 +++ loncom/interface/loncreateuser.pm 2006/08/16 19:47:42 1.130 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.129 2006/08/11 21:55:19 albertel Exp $ +# $Id: loncreateuser.pm,v 1.130 2006/08/16 19:47:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -604,7 +604,7 @@ END if ($area =~ /^\/(\w+)\/(\d\w+)/ ) { $class='Course'; my ($coursedom,$coursedir) = ($1,$2); - $sortkey.="\0$1"; + $sortkey.="\0$coursedom"; # $1.'_'.$2 is the course id (eg. 103_12345abcef103l3). my %coursedata= &Apache::lonnet::coursedescription($1.'_'.$2); @@ -619,6 +619,7 @@ END $carea=&mt('Unavailable course').': '.$area; $sortkey.="\0".&mt('Unavailable course').': '.$area; } + $sortkey.="\0$coursedir"; $inccourses{$1.'_'.$2}=1; if ((&Apache::lonnet::allowed('c'.$role_code,$1.'/'.$2)) || (&Apache::lonnet::allowed('c'.$role_code,$ccdomain))) {