From 8c56b1c7581915b7d5d9677e8a097addeecb0cbf Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 2 May 2024 03:14:50 -0700 Subject: [PATCH] Core: organize files on ingest via alpha, not ascii (#3029) * organize files on ingest via alpha, not ascii * Change from lower() to casefold() --- Generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Generate.py b/Generate.py index d215f39d9dc9..c7ed1ad2d708 100644 --- a/Generate.py +++ b/Generate.py @@ -120,7 +120,7 @@ def main(args=None, callback=ERmain): raise ValueError(f"File {fname} is invalid. Please fix your yaml.") from e # sort dict for consistent results across platforms: - weights_cache = {key: value for key, value in sorted(weights_cache.items())} + weights_cache = {key: value for key, value in sorted(weights_cache.items(), key=lambda k: k[0].casefold())} for filename, yaml_data in weights_cache.items(): if filename not in {args.meta_file_path, args.weights_file_path}: for yaml in yaml_data: