Skip to content

Format order by clauses into multiple lines#943

Merged
SimonCropp merged 2 commits intomainfrom
Format-ORDER-BY-clauses-into-multiple-lines
Feb 4, 2026
Merged

Format order by clauses into multiple lines#943
SimonCropp merged 2 commits intomainfrom
Format-ORDER-BY-clauses-into-multiple-lines

Conversation

@SimonCropp
Copy link
Copy Markdown
Member

No description provided.

Add formatting for ORDER BY clauses: detect lines starting with "order by " that contain commas and split the column list onto separate lines for improved readability. Preserves original indentation and trailing commas, and respects parentheses (e.g. function calls) via a new SplitRespectingParens helper to avoid splitting inside parenthesized expressions. Hooked into existing SQL formatting flow so single-item ORDER BY lines remain unchanged.
@SimonCropp SimonCropp added this to the 15.0.0 milestone Feb 4, 2026
@SimonCropp SimonCropp merged commit d8ca8a2 into main Feb 4, 2026
6 of 7 checks passed
@SimonCropp SimonCropp deleted the Format-ORDER-BY-clauses-into-multiple-lines branch February 4, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant