diff --git a/cimgen/languages/java/lang_pack.py b/cimgen/languages/java/lang_pack.py index d874ae7..0923a46 100644 --- a/cimgen/languages/java/lang_pack.py +++ b/cimgen/languages/java/lang_pack.py @@ -107,7 +107,7 @@ def label(text, render): def _create_header_include_file(directory, header_include_filename, header, footer, before, after, blacklist): lines = [] - for file in sorted(directory.glob("*.java")): + for file in sorted(directory.glob("*.java"), key=lambda f: f.stem): basename = file.stem if basename not in blacklist: lines.append(before + 'Map.entry("' + basename + '", new cim4j.' + basename + after + "),\n")