From 7f6a063527f721bb01ee1675444c1b41a1f3b4c2 Mon Sep 17 00:00:00 2001 From: WeetHet Date: Mon, 30 Sep 2024 12:20:02 +0300 Subject: [PATCH] sort examples --- verified_cogen/runners/chain_of_thought/step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verified_cogen/runners/chain_of_thought/step.py b/verified_cogen/runners/chain_of_thought/step.py index f13da5a..0779047 100644 --- a/verified_cogen/runners/chain_of_thought/step.py +++ b/verified_cogen/runners/chain_of_thought/step.py @@ -23,7 +23,7 @@ class Step: question: str def __init__(self, dir: pathlib.Path): - for substep in (dir / "examples").iterdir(): + for substep in sorted((dir / "examples").iterdir()): assert substep.is_dir() self.substeps.append( Substep(