From 7531decb20eb29344ebb5b7f8225393328c262b3 Mon Sep 17 00:00:00 2001 From: Karen Liu Date: Tue, 23 Jan 2024 13:25:17 -0500 Subject: [PATCH] Sort session report data in start_time ascending order --- locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index 74f489f1..ab3c9d66 100755 --- a/locallib.php +++ b/locallib.php @@ -226,7 +226,8 @@ function zoom_get_sessions_for_display($zoomid) { $sessions = []; $format = get_string('strftimedatetimeshort', 'langconfig'); - $instances = $DB->get_records('zoom_meeting_details', ['zoomid' => $zoomid]); + // Sort sessions in start_time ascending order + $instances = $DB->get_records('zoom_meeting_details', ['zoomid' => $zoomid], 'start_time'); foreach ($instances as $instance) { // The meeting uuid, not the participant's uuid.