summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lorrycontroller/readconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/readconf.py b/lorrycontroller/readconf.py
index a8949c1..4e162a9 100644
--- a/lorrycontroller/readconf.py
+++ b/lorrycontroller/readconf.py
@@ -202,7 +202,7 @@ class ReadConfiguration(lorrycontroller.LorryControllerRoute):
self.add_refspecs_if_missing(obj)
lorry_specs.append((subpath, obj))
- for subpath, obj in sorted(lorry_specs):
+ for subpath, obj in sorted(lorry_specs, key=(lambda x: x[0])):
path = self.deduce_repo_path(section, subpath)
text = self.serialise_lorry_spec(path, obj)
interval = section['interval']