From 6c235e4e964519d4a37f4af3e0a5a0dee7b7d41e Mon Sep 17 00:00:00 2001 From: Michelle Melton Date: Tue, 20 Oct 2020 16:52:44 -0400 Subject: [PATCH] MDL-69399 LTI: Alphabetize LTI tool list in selection menu --- mod/lti/locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 33854f14341..12969d188ff 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -2321,7 +2321,8 @@ function lti_get_lti_types_by_course($courseid, $coursevisible = null) { FROM {lti_types} WHERE coursevisible $coursevisiblesql AND ($coursecond) - AND state = :active"; + AND state = :active + ORDER BY name ASC"; return $DB->get_records_sql($query, array('siteid' => $SITE->id, 'courseid' => $courseid, 'active' => LTI_TOOL_STATE_CONFIGURED) + $coursevisparams);