Skip to content

Commit

Permalink
Sort session report data in start_time ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
Karen Liu committed Jan 23, 2024
1 parent 090eb08 commit e5f37de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e5f37de

Please sign in to comment.