From 6e96d6198f5a7726e135ebae5228646ca8a22f2e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 16 Jan 2020 02:22:03 +0100 Subject: less crazy iterations... and sorting --- cli/app/utils/cortex_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/app/utils/cortex_utils.py') diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py index 1413f9a..26878fd 100644 --- a/cli/app/utils/cortex_utils.py +++ b/cli/app/utils/cortex_utils.py @@ -51,7 +51,7 @@ def find_unprocessed_files(files, reprocess=False): dataset = fn.split('-')[0] if dataset not in datasets or reprocess == True: unprocessed_files.append(file) - return unprocessed_files + return sorted(unprocessed_files, key=lambda x: x['name']) def fetch_json(url, **kwargs): """HTTP GET some JSON""" -- cgit v1.2.3-70-g09d2