The run directories below regen/runs/, newest first.
The order is the date in the name, then the name, and a collision suffix by its number (-10 after -2). Directories without a date in the name are listed last. A missing regen/runs/ gives an empty list.
from pathlib import Pathfrom tempfile import TemporaryDirectoryfrom spotregen.gui.model import list_runswith TemporaryDirectory() as tmp: runs = Path(tmp) /"regen/runs"for name in ("2026-10-01-core.calc-mutate", "2026-10-09-core.calc-local-m"): (runs / name).mkdir(parents=True)print([r.name for r in list_runs(tmp)])