Skip to content

[5.x]: Order by custom fields groups entries by section #14821

@olivierbon

Description

@olivierbon

What happened?

Description

When querying multiple sections at once, (.section(['galaxies','planets'])), ordering by custom field returns a list of entries grouped by section.

Ordering by postDate, title works fine, problem only occurs with custom fields.

This works fine in Craft 4.

Craft CMS version

5+

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions