MDL-67980 tasks: Sort ad-hoc tasks by nextruntime.

This commit is contained in:
Mikhail Golenkov
2020-02-24 09:32:37 +11:00
parent 7b37466710
commit 3d20910e88
2 changed files with 47 additions and 1 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ class manager {
$where = '(nextruntime IS NULL OR nextruntime < :timestart1)';
$params = array('timestart1' => $timestart);
$records = $DB->get_records_select('task_adhoc', $where, $params);
$records = $DB->get_records_select('task_adhoc', $where, $params, 'nextruntime ASC, id ASC');
foreach ($records as $record) {