We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b9de17 + 73115c2 commit 0784dc0Copy full SHA for 0784dc0
main/calendar/agenda_list.php
@@ -36,6 +36,14 @@
36
$this_section = SECTION_COURSES;
37
} else {
38
// Agenda is out of the course tool (e.g personal agenda)
39
+
40
+ // Little hack to sort the events by start date in personal agenda (Agenda events List view - See #8014)
41
+ usort($events, function($a, $b) {
42
+ $t1 = strtotime($a['start']);
43
+ $t2 = strtotime($b['start']);
44
+ return $t1 - $t2;
45
+ });
46
47
$url = false;
48
foreach ($events as &$event) {
49
$event['url'] = api_get_self() . '?cid=' . $event['course_id'] .
0 commit comments