diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 968e22ec35acbc0ce56528224137f5e0c74e10ab..314e09fa54d1ff28f5cbaf40ae80cc578ed7e93a 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -1690,7 +1690,7 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): workflow_list = [workflow_list] xml_data += '\n <chain>' xml_data += '\n <type>%s</type>' %(key,) - xml_data += '\n <workflow>%s</workflow>' %(', '.join(workflow_list)) + xml_data += '\n <workflow>%s</workflow>' %(', '.join(sorted(workflow_list))) xml_data += '\n </chain>' xml_data += '\n</workflow_chain>' return xml_data