Skip to content

feat: Add option to sort global scripts alphabetically#2167

Merged
GermanBluefox merged 3 commits intoioBroker:masterfrom
fbeister:master
Apr 10, 2026
Merged

feat: Add option to sort global scripts alphabetically#2167
GermanBluefox merged 3 commits intoioBroker:masterfrom
fbeister:master

Conversation

@fbeister
Copy link
Copy Markdown
Contributor

@fbeister fbeister commented Apr 6, 2026

Global scripts are concatenated sequentially on startup, so concatenation order matters when one script depends on definitions from another.

This adds an optional adapter config flag "Sort global scripts alphabetically" that sorts all scripts by _id before concatenation. When disabled, existing behavior is preserved. Users can use a naming convention (e.g. 01_base, 02_helpers) to express explicit concatenation order.

Copy link
Copy Markdown
Contributor

@GermanBluefox GermanBluefox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@GermanBluefox GermanBluefox enabled auto-merge (squash) April 10, 2026 18:46
@GermanBluefox GermanBluefox merged commit 98cf9c3 into ioBroker:master Apr 10, 2026
18 checks passed
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.

2 participants