diff --git a/scriptengine.cpp b/scriptengine.cpp index 0fb2d38ae..777a56dfc 100644 --- a/scriptengine.cpp +++ b/scriptengine.cpp @@ -677,6 +677,8 @@ QStringList ScriptEngine::defaultLayoutScripts() { const QString appName = KGlobal::activeComponent().aboutData()->appName(); QStringList scripts = KGlobal::dirs()->findAllResources("data", appName + "/init/*.js"); + scripts.sort(); + QStringList scriptPaths; if (scripts.isEmpty()) {