]> git.mjollnir.org Git - moodle.git/commitdiff
More tweaks ... sorts etc
authormoodler <moodler>
Sun, 17 Aug 2003 07:20:40 +0000 (07:20 +0000)
committermoodler <moodler>
Sun, 17 Aug 2003 07:20:40 +0000 (07:20 +0000)
course/student.php

index d70004d3055494c51dd469c10e0bcc06cec2f50e..3bc2fe63219c591d9a0b1b673babb9ca9884482a 100644 (file)
@@ -71,7 +71,7 @@
 
 /// Print a help notice about the need to use this page
 
-    if (empty($add) and empty($remove)) {
+    if (empty($add) and empty($remove) and empty($search)) {
         $note = get_string("assignstudentsnote");
         if ($course->password) {
             $note .= "<p>".get_string("assignstudentspass", "", "<a href=\"edit.php?id=$course->id\">$course->password</a>");
@@ -80,7 +80,7 @@
     }
 
 /// Get all existing students for this course.
-    $students = get_course_students($course->id);
+    $students = get_course_students($course->id, "u.lastname ASC, u.firstname ASC");
 
 /// Print the lists of existing and potential students
 
 
 /// Print list of potential students
 
-    $usercount = get_users(false, $search, true, $studentlist);
+    $usercount = get_users(false, $search, true, $studentlist, "lastname ASC, firstname ASC");
 
     if ($usercount == 0) {
         echo "<p align=center>$strnopotentialstudents</p>";