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.
This commit is contained in:
Fabian Homborg 2021-04-21 17:13:03 +02:00
parent f2364103b4
commit 152b0ef018

View file

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