- πΊπΈUnited States smustgrave
Seems to have missed the D9 and D10 boat so maybe D11?
ConfigEntityListBuilder::load() sorts the config entities using the entity class's sort() method:
// Sort the entities using the entity class's sort() method.
// See \Drupal\Core\Config\Entity\ConfigEntityBase::sort().
uasort($entities, array($this->entityType->getClass(), 'sort'));
return $entities;
However, prior to that, the inherited method EntityListBuilder::getEntityIds() applies a sort:
protected function getEntityIds() {
$query = $this->getStorage()->getQuery()
->sort($this->entityType->getKey('id'));
The sorting here is thus redundant.
(Furthermore, config entity queries have their sort applied in PHP, not in SQL (since the entities properties are all serialized in the database -- see Drupal\Core\Config\Entity\Query\Query::execute()), so that's two lots of PHP sorting.)
The fix would be to override getEntityIds() in ConfigEntityListBuilder and remove the sorting.
Needs work
10.1 β¨
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Seems to have missed the D9 and D10 boat so maybe D11?