Adding the orderby key will order sequences alphabetically in config exports for better readability and less confusing diffs.

See the change record: New orderby key added to configuration schema for sequences.

in entity_usage.settings.yml

entity_usage.settings:
  type: config_object
  mapping:
    // ... other config schema key definitions
    track_enabled_plugins:
      label: Enabled tracking plugins
      type: sequence
      orderby: value
      sequence:
        type: string

before adding the orderby:

track_enabled_plugins:
  - dynamic_entity_reference
  - link
  - linkit
  - layout_builder
  - entity_reference
  - entity_embed
  - html_link
  - block_field

after adding the orderby:

track_enabled_plugins:
  - block_field
  - dynamic_entity_reference
  - entity_embed
  - entity_reference
  - html_link
  - layout_builder
  - link
  - linkit
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mcaddz created an issue. See original summary.

mcaddz’s picture

Version: 8.x-4.x-dev » 8.x-2.x-dev

acbramley’s picture

Status: Active » Reviewed & tested by the community

This would be a good improvement, test failures are unrelated (HEAD is failing)

marcoscano made their first commit to this issue’s fork.

  • marcoscano committed 642974e7 on 8.x-2.x authored by mcaddz
    Issue #3376704 by mcaddz, acbramley, marcoscano: Add "orderby" to config...
marcoscano’s picture

Status: Reviewed & tested by the community » Fixed

Apologies for the delay, it makes sense, thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

acbramley’s picture

Looks like Drupal CI is still running, would you mind turning it off now we have Gitlab CI we can save some minutes :)

marcoscano’s picture

Looks like Drupal CI is still running, would you mind turning it off now we have Gitlab CI we can save some minutes :)

Done! Thank you! 👍