[LON-CAPA-cvs] cvs: loncom /interface lonselstudent.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 01 Nov 2007 20:04:25 -0000
albertel Thu Nov 1 16:04:25 2007 EDT
Modified files:
/loncom/interface lonselstudent.pm
Log:
- BUG#5503 don't sort by section
Index: loncom/interface/lonselstudent.pm
diff -u loncom/interface/lonselstudent.pm:1.10 loncom/interface/lonselstudent.pm:1.11
--- loncom/interface/lonselstudent.pm:1.10 Thu Nov 1 15:56:39 2007
+++ loncom/interface/lonselstudent.pm Thu Nov 1 16:04:17 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# lonselstudent.pm : Reusable subs for student selection.
#
-# $Id: lonselstudent.pm,v 1.10 2007/11/01 19:56:39 albertel Exp $
+# $Id: lonselstudent.pm,v 1.11 2007/11/01 20:04:17 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -111,9 +111,8 @@
my $classlist = &Apache::loncoursedata::get_classlist();
my @keys = keys(%{$classlist});
- # Sort by: Section, name
+ # Sort by: fullname, username
@keys = sort {
- lc($classlist->{$a}[$section]) cmp lc($classlist->{$b}[$section]) ||
lc($classlist->{$a}[$fullname]) cmp lc($classlist->{$b}[$fullname]) ||
lc($a) cmp lc($b)
} (@keys);