From e5f37de07a2e413e5c1e7b9fc37bf019fb10f1ef 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..92dd6e33 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.