From b05718c03d755ab00ad1e6b2368a1f21bcffaac6 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Tue, 24 Sep 2019 17:10:18 +0200 Subject: [PATCH] Fix result file order. --- app/main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views.py b/app/main/views.py index c9d6dd64..3650e31f 100644 --- a/app/main/views.py +++ b/app/main/views.py @@ -118,7 +118,7 @@ def job(job_id): if job.status == 'complete': files[file]['results'] = {} results_dir = os.path.join(dir, 'output', file) - for result in os.listdir(results_dir): + for result in sorted(os.listdir(results_dir)): result_type = result.rsplit(".", 1)[1] files[file]['results'][result_type] = {} files[file]['results'][result_type]['path'] = os.path.join(