Skip to content

[6.x] Apply the GraphQL orderBy argument's sort direction - #19996

Merged
brandonkelly merged 3 commits into
6.xfrom
bugfix/gql-orderby-direction
Oct 16, 2026
Merged

brandonkelly merged 3 commits into
6.xfrom
bugfix/gql-orderby-direction

Conversation

@brandonkelly

Copy link
Copy Markdown
Member

Description

ElementResolver applied each parsed orderBy column without its direction, so GraphQL queries like entries(orderBy: "title desc") sorted ascending. In Craft 5 the direction is respected; this passes it through again.

🤖 Generated with Claude Code

ElementResolver applied each parsed `orderBy` column without its direction,
so `orderBy: "title desc"` sorted ascending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/ui — open Storybook

No changed components detected in this Storybook.

resources/js — open Storybook

No changed components detected in this Storybook.

brandonkelly and others added 2 commits October 16, 2026 05:03
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brandonkelly
brandonkelly merged commit cd3bd9a into 6.x Oct 16, 2026
9 checks passed
@brandonkelly
brandonkelly deleted the bugfix/gql-orderby-direction branch October 16, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant