diff --git a/src/fairchem/core/datasets/ase_datasets.py b/src/fairchem/core/datasets/ase_datasets.py index 08618c9f2..d688b8e79 100644 --- a/src/fairchem/core/datasets/ase_datasets.py +++ b/src/fairchem/core/datasets/ase_datasets.py @@ -484,7 +484,7 @@ def _load_dataset_get_ids(self, config: dict) -> list[int]: self.dbs = [] - for path in filepaths: + for path in sorted(filepaths): try: self.dbs.append(self.connect_db(path, config.get("connect_args", {}))) except ValueError: