From 152b0ef01854b68e330f59cc4796691dd6316a1a Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 21 Apr 2021 17:13:03 +0200 Subject: [PATCH] Webconfig: Sort the prompt list Otherwise this has filesystem order, which on my system is quite chaotic. An alternative would be to randomize the order so people see different prompts each time. --- share/tools/web_config/webconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index ab41e178c..ba021a33f 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -1203,7 +1203,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): return None def do_get_sample_prompts_list(self): - paths = glob.iglob("sample_prompts/*.fish") + paths = sorted(glob.iglob("sample_prompts/*.fish")) result = [] try: pool = multiprocessing.pool.ThreadPool(processes=8)