diff --git a/src/omnipy/compute/mixins/serialize.py b/src/omnipy/compute/mixins/serialize.py index f9ec77e0..43158bdf 100644 --- a/src/omnipy/compute/mixins/serialize.py +++ b/src/omnipy/compute/mixins/serialize.py @@ -199,7 +199,7 @@ def _generate_datetime_str(self): def _all_job_output_file_paths_in_reverse_order_for_last_run( persist_data_dir_path: Path, job_name: str) -> Generator[Path, None, None]: - sorted_date_dirs = iter(sorted(os.listdir(persist_data_dir_path))) + sorted_date_dirs = iter(reversed(sorted(os.listdir(persist_data_dir_path)))) try: last_dir = next(sorted_date_dirs)