diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 1a0cdf64cb..6afb4c43b3 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -273,7 +273,7 @@ def main(): incfile = open(args.includes_file, "w") incfile.write(includecmt) - for module in os.listdir(args.module_dir): + for module in sorted(os.listdir(args.module_dir)): if len(args.module_list): if not module in args.module_list: continue