Skip to content

Conversation

@n-zaitsev
Copy link

@n-zaitsev n-zaitsev commented Jan 17, 2026

Summary

This PR introduces a new FolderSortingStrategy option and threads it through the project graph models.
The default behavior remains unchanged (groupsBeforeFolderReferences).

Context

Currently, the folder sorting behavior is implicit and hardcoded.
This change makes the strategy explicit at the model level without affecting existing behavior.

Scope of this PR

  • Adds FolderSortingStrategy enum
  • Adds folderSortingStrategy to Project / Project.Options
  • Passes the option through mappers
  • Keeps the current behavior as the default

Follow-up

This is a preparatory step towards resolving tuist/tuist#8440.
Actual sorting behavior changes are handled in this PR

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant