Sorts are broken for \Drupal\Core\Config\Entity\Query\Query

Created on 21 March 2017, over 7 years ago
Updated 8 June 2023, over 1 year ago

Problem/Motivation

When applying one or multiple sorts to config entity queries the results are not necessarily correct for a single sort, and are wrong if multiple sorts are applied becuase of the PHP-based sorting in:

In \Drupal\Core\Config\Entity\Query\Query::execute()

Proposed resolution

Correctly implement the sort comparator to return 0 if two values are equal and either implement multiple key sorts correctly or at least document the fact that they do not work.

Remaining tasks


fix patch

User interface changes

n/a

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Configuration entity 

Last updated about 5 hours ago

Created by

🇺🇸United States pwolanin

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024