diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 98c88caaf..f8fff6c28 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -11302,6 +11302,9 @@ class AttributeClassAttCodeSet extends AttributeSet } $aAllowedAttributes[$sAttCode] = $sLabel; } + // N°6460 Always sort on the labels, not on the datamodel definition order + natcasesort($aAllowedAttributes); + return $aAllowedAttributes; }