MDL-51460 tool_lp: List frameworks' API function does not support order

This commit is contained in:
Issam Taboubi
2016-04-18 10:58:35 +08:00
committed by Frederic Massart
parent 904291f21f
commit b397969665
2 changed files with 62 additions and 1 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ class api {
// OK - all set.
list($insql, $inparams) = $DB->get_in_or_equal(array_keys($contexts), SQL_PARAMS_NAMED);
return competency_framework::get_records_select("contextid $insql", $inparams, $sort, '*', $skip, $limit);
return competency_framework::get_records_select("contextid $insql", $inparams, $sort . ' ' . $order, '*', $skip, $limit);
}
/**