]> git.mjollnir.org Git - moodle.git/commitdiff
Trying some sorting of users
authormoodler <moodler>
Tue, 27 Apr 2004 09:43:46 +0000 (09:43 +0000)
committermoodler <moodler>
Tue, 27 Apr 2004 09:43:46 +0000 (09:43 +0000)
blocks/online_users/block_online_users.php

index cf906826013766585369baf77109e8287f1e3e09..69fddecd43b7afc22fe9c01a68eed2feb74d2bcc 100644 (file)
@@ -65,7 +65,7 @@ class CourseBlock_online_users extends MoodleBlock {
                                           $groupmembers
                                      WHERE u.id = s.userid and
                                            s.course = {$this->course->id} and
-                                           s.timeaccess > $timefrom $select");
+                                           s.timeaccess > $timefrom $select ORDER BY s.timeaccess ASC");
 
         $teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess
                                      FROM {$CFG->prefix}user u,
@@ -73,7 +73,7 @@ class CourseBlock_online_users extends MoodleBlock {
                                           $groupmembers
                                      WHERE u.id = s.userid and
                                            s.course = {$this->course->id} and
-                                           s.timeaccess > $timefrom $select");
+                                           s.timeaccess > $timefrom $select ORDER BY s.timeaccess ASC");
 
         if ($teachers || $students) {
             if ($students) {