Skip to content

feat: Add option to sort global scripts alphabetically#2167

Open
fbeister wants to merge 1 commit intoioBroker:masterfrom
fbeister:master
Open

feat: Add option to sort global scripts alphabetically#2167
fbeister wants to merge 1 commit intoioBroker:masterfrom
fbeister:master

Conversation

@fbeister
Copy link
Copy Markdown

@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.

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