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(