From 31dc0152db396f4cc0f7258926b5740695ed0073 Mon Sep 17 00:00:00 2001
From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu>
Date: Fri, 21 May 2021 12:02:43 +0200
Subject: [PATCH] Sort inventory alphabetically.

---
 climax/main/preprocess.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/climax/main/preprocess.py b/climax/main/preprocess.py
index 2d8b0c9..20e60c5 100644
--- a/climax/main/preprocess.py
+++ b/climax/main/preprocess.py
@@ -82,7 +82,7 @@ if __name__ == '__main__':
 
         # get all the files matching the defined pattern in the source
         # directory
-        source = get_inventory(args.source, pattern, return_df=False)
+        source = sorted(get_inventory(args.source, pattern, return_df=False))
 
         # extract files of the specified variable
         LOGGER.info('Files matching "{}" for variable "{}":'.format(
-- 
GitLab