MDL-54601 webservice: Order services function list by name

This commit is contained in:
Juan Leyva 2016-06-15 15:36:17 +01:00
parent a0a63678a9
commit 89823b1ae3
2 changed files with 6 additions and 1 deletions

View File

@ -460,7 +460,8 @@ class webservice {
FROM {external_functions} f
WHERE f.name IN (SELECT sf.functionname
FROM {external_services_functions} sf
WHERE sf.externalserviceid $serviceids)";
WHERE sf.externalserviceid $serviceids)
ORDER BY f.name ASC";
$functions = $DB->get_records_sql($sql, $params);
} else {
$functions = array();

View File

@ -3,6 +3,10 @@ information provided here is intended especially for developers.
This information is intended for authors of webservices, not people writing webservice clients.
=== 3.2 ===
* webservice->get_external_functions now returns the external function list ordered by name ASC.
=== 3.1 ===
* The xmlrpc backend has changed, Zend_XmlRpc has been dropped and there might be slight differences in