mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-54542-master-fixup' of https://github.com/FMCorz/moodle
This commit is contained in:
commit
a88f8b2fd5
@ -2409,6 +2409,9 @@ class api {
|
||||
$sql .= " AND p.userid $insql";
|
||||
$params += $inparams;
|
||||
|
||||
// Order by last updated, seconded by ID to prevent random ordering.
|
||||
$sql .= " ORDER BY p.timemodified DESC, p.id ASC";
|
||||
|
||||
$plans = array();
|
||||
$records = $DB->get_recordset_sql($select . $sql, $params, $skip, $limit);
|
||||
foreach ($records as $record) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user