Skip to content

Parse orderBy expressions for column mappings#16729

Merged
brandonkelly merged 2 commits into5.7from
feature/orderby-expression-mappings
Feb 19, 2025
Merged

Parse orderBy expressions for column mappings#16729
brandonkelly merged 2 commits into5.7from
feature/orderby-expression-mappings

Conversation

@brandonkelly
Copy link
Copy Markdown
Member

Description

Expands on #16318, adding column mapping parsing for orderBy expressions.

{% set entries = craft.entries()
  .section('notes')
  .orderBy('ISNULL([[datePublished]]), datePublished ASC, title ASC')
  .all() %}

Related issues

@brandonkelly brandonkelly merged commit 1d93741 into 5.7 Feb 19, 2025
@brandonkelly brandonkelly deleted the feature/orderby-expression-mappings branch February 19, 2025 14:12
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