summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.admin.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index ef99085d8..54057f155 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -187,7 +187,9 @@ function system_themes_form() {
drupal_clear_css_cache();
$themes = system_theme_data();
- ksort($themes);
+
+ uasort($themes, 'system_sort_modules_by_info_name');
+
$status = array();
$incompatible_core = array();
$incompatible_php = array();
@@ -769,7 +771,7 @@ function system_modules($form_state = array()) {
}
/**
- * Array sorting callback; sorts modules by their name.
+ * Array sorting callback; sorts modules or themes by their name.
*/
function system_sort_modules_by_info_name($a, $b) {
return strcasecmp($a->info['name'], $b->info['name']);