diff --git a/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php b/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php index 21a5b57..e70bd40 100644 --- a/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php +++ b/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php @@ -78,12 +78,14 @@ public function buildForm(array $form, array &$form_state, $config_type = NULL, $this->definitions[$entity_type] = $definition; } } - $config_types = array( - 'system.simple' => $this->t('Simple configuration'), - ); - $config_types += array_map(function ($definition) { + $entity_types = array_map(function ($definition) { return $definition['label']; }, $this->definitions); + // Sort the entity types by label, then add the simple config to the top. + uasort($entity_types, 'strnatcasecmp'); + $config_types = array( + 'system.simple' => $this->t('Simple configuration'), + ) + $entity_types; $form['config_type'] = array( '#title' => $this->t('Configuration type'), '#type' => 'select',