From d9e74b2ce8bff977766bbbddf5457b1a087beebb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 23 Jul 2010 15:11:48 -0400 Subject: [PATCH] Sort recipe files when loading Cookbook --- cookbook/cookbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/cookbook.py b/cookbook/cookbook.py index b95e576..fdfae2c 100644 --- a/cookbook/cookbook.py +++ b/cookbook/cookbook.py @@ -526,7 +526,7 @@ class Cookbook (list): recipe.save(f, p) def load(self): - for path in os.listdir(self.save_dir): + for path in sorted(os.listdir(self.save_dir)): r = Recipe() p = os.path.join(self.save_dir, path) with open(p, 'r') as f: -- 2.26.2