summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--obnamlib/fmt_ga/cowtree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/fmt_ga/cowtree.py b/obnamlib/fmt_ga/cowtree.py
index c507fca3..f4be1ed9 100644
--- a/obnamlib/fmt_ga/cowtree.py
+++ b/obnamlib/fmt_ga/cowtree.py
@@ -98,7 +98,7 @@ class CowTree(object):
def _add_leaf(self, leaf_list, leaf):
leaf_id = self._store.put_leaf(leaf)
- keys = leaf.keys()
+ keys = list(sorted(leaf.keys()))
leaf_list.add(leaf_id, keys[0], keys[-1])
def _put_leaf_list(self, leaf_list):