diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py index 4a621dd3d1..39d1987fa4 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py @@ -110,5 +110,6 @@ def add_prop_template( ) has_property_templates = list(pset_template.HasPropertyTemplates or []) has_property_templates.append(prop_template) + has_property_templates.sort(key=lambda pt: pt.Name) pset_template.HasPropertyTemplates = has_property_templates return prop_template