From 415b1e1f0bf6483808180362ff369cd59f057a6e Mon Sep 17 00:00:00 2001 From: pyth0n1c Date: Tue, 23 Jul 2024 16:39:03 -0700 Subject: [PATCH] sort returned list of files --- contentctl/helper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentctl/helper/utils.py b/contentctl/helper/utils.py index 1edd0286..261ecb64 100644 --- a/contentctl/helper/utils.py +++ b/contentctl/helper/utils.py @@ -76,7 +76,7 @@ def get_security_content_files_from_directory(path: pathlib.Path, allowedFileExt raise Exception(f"The following files are not allowed in the directory '{path}'. Only files with the extensions {allowedFileExtensions} are allowed:{[str(filePath) for filePath in erroneousFiles]}") # There were no errorneous files, so return the requested files - return [filePath for filePath in allowedFiles if filePath.suffix in fileExtensionsToReturn] + return sorted([filePath for filePath in allowedFiles if filePath.suffix in fileExtensionsToReturn]) @staticmethod def get_all_yml_files_from_directory_one_layer_deep(path: str) -> list[pathlib.Path]: