MDL-56487 tool_usertours: Sort blocks alphabetically

This commit is contained in:
Andrew Nicols 2016-10-21 10:18:53 +08:00
parent 919b9dfabd
commit b7daff836d

View File

@ -90,6 +90,8 @@ class block extends base {
$blocks[$block->name] = get_string('pluginname', 'block_' . $block->name);
}
\core_collator::asort($blocks);
$mform->addElement('select', 'targetvalue_block', get_string('block', 'tool_usertours'), $blocks);
}