diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index ec21e9592cb1bd5f1b83328ecb6453fe17dd7b98..894bee79aae61aa2ee2c284f8c6ff27c5e4f13a5 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -611,7 +611,9 @@ class PathTemplateItem(ObjectTemplateItem):
   def build(self, context, **kw):
     BaseTemplateItem.build(self, context, **kw)
     p = context.getPortalObject()
-    for path in self._path_archive.keys():
+    keys = self._path_archive.keys()
+    keys.sort()    
+    for path in keys:
       include_subobjects = 0
       if '**' in path:
         include_subobjects = 1