chore: ensure alphabetical sort order for object loading

Attempts to fix random test failures ...
This commit is contained in:
Matthias
2026-01-08 20:38:39 +01:00
parent df8465a9f3
commit 993771c5d3

View File

@@ -139,7 +139,7 @@ class IResolver:
:return: object class
"""
logger.debug(f"Searching for {cls.object_type.__name__} {object_name} in '{directory}'")
for entry in directory.iterdir():
for entry in sorted(directory.iterdir()):
# Only consider python files
if entry.suffix != ".py":
logger.debug("Ignoring %s", entry)