summaryrefslogtreecommitdiff
path: root/modules/update/update.report.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/update/update.report.inc')
-rw-r--r--modules/update/update.report.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc
index e5ed7c867..831b5d217 100644
--- a/modules/update/update.report.inc
+++ b/modules/update/update.report.inc
@@ -199,7 +199,8 @@ function theme_update_report($data) {
if (!isset($rows[$project['project_type']])) {
$rows[$project['project_type']] = array();
}
- $rows[$project['project_type']][] = array(
+ $row_key = isset($project['title']) ? drupal_strtolower($project['title']) : drupal_strtolower($project['name']);
+ $rows[$project['project_type']][$row_key] = array(
'class' => array($class),
'data' => array($row),
);
@@ -214,6 +215,7 @@ function theme_update_report($data) {
);
foreach ($project_types as $type_name => $type_label) {
if (!empty($rows[$type_name])) {
+ ksort($rows[$type_name]);
$output .= "\n<h3>" . $type_label . "</h3>\n";
$output .= theme('table', $header, $rows[$type_name], array('class' => array('update')));
}