From: moodler Date: Tue, 27 Apr 2004 09:43:46 +0000 (+0000) Subject: Trying some sorting of users X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce4ec6dc2e8b5b69c0a21e304839073c911b4f14;p=moodle.git Trying some sorting of users --- diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index cf90682601..69fddecd43 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -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) {