Skip to content

Commit

Permalink
MDL-55053 search: Display search areas in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmerrill committed Jun 28, 2016
1 parent b8474fe commit a02fe72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions search/classes/output/form/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ function definition() {
foreach ($searchareas as $areaid => $searcharea) {
$areanames[$areaid] = $searcharea->get_visible_name();
}

// Sort the array by the text.
\core_collator::asort($areanames);

$options = array(
'multiple' => true,
'noselectionstring' => get_string('allareas', 'search'),
Expand Down

0 comments on commit a02fe72

Please sign in to comment.