From 1c8876a3f408bb5ad8b0484008be97321c59f211 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 17 Aug 2010 20:41:10 -0400 Subject: [PATCH] Sort cookbook after adding a new recipe. --- cookbook/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbook/server.py b/cookbook/server.py index e62dd84..e94e769 100644 --- a/cookbook/server.py +++ b/cookbook/server.py @@ -165,6 +165,7 @@ class Server (object): print 'new' self.cookbook.append(recipe) self.cookbook.make_index() + self.cookbook.sort(key=lambda r: r.path) elif name != recipe.name: # renamed recipe print 'rename' os.remove(recipe.path) -- 2.26.2