MDL-54601 webservice: Order services function list by name
authorJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 15 Jun 2016 14:36:17 +0000 (15:36 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 15 Jun 2016 14:40:55 +0000 (15:40 +0100)
webservice/lib.php
webservice/upgrade.txt

index fc9c178..4a608a2 100644 (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();
index 9d5a009..5159d50 100644 (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