Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While working on other ticket I came across this one:
(I couldn't get a printscreen of this select expanded, but it's not sorted alphabetically right now.) This does confuse a little bit, and the confusion grows proportionally to the entity types defined in the drupal instance.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2947086-source-entity-type-sorted-2.patch | 786 bytes | bucefal91 |
| |||
Screenshot from 2018-02-22 15-55-58.png | 173.97 KB | bucefal91 |
Comments
Comment #2
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedI did a quick research on what's the best way to sort array of multi-language strings (in case the current language is not English but something else). Drupal core sorts config entities based on strnatcasecmp (prooflink: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!Con...). So I decided to follow the pattern.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedthanks for reviewing!