From 08e27c3252dd6df42a2084017eebfba445a49598 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Fri, 23 Sep 2022 03:05:42 +0100 Subject: [PATCH] sort JavaScript includes to assure script sequence Who knows what filesystem they're on --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index 036f2ed3a..cbdbfe74a 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1019,7 +1019,7 @@ with open(os.path.join(script_path, "script.js"), "r", encoding="utf8") as jsfil javascript = f'' jsdir = os.path.join(script_path, "javascript") -for filename in os.listdir(jsdir): +for filename in sorted(os.listdir(jsdir)): with open(os.path.join(jsdir, filename), "r", encoding="utf8") as jsfile: javascript += f"\n"