Sort Dropdown-Lists alphabetically

If the restriction “enumeration” is applied for simple data types, this results in a drop-down list in the generic editor. The entries can be sorted via the property “Sort”. Possible values are “None” (default), “Ascending” and “Descending”.

In the following example, the simple data type sortExample is limited to 6 options. These are sorted by localisation in ascending order.

<xs:simpleType name="sortExample">
  <xs:restriction base="xs:string">
    <xs:enumeration value="b" />
    <xs:enumeration value="c" />
    <xs:enumeration value="d" />
    <xs:enumeration value="e" />
    <xs:enumeration value="f" />
    <xs:enumeration value="a" />

<item name="SimpleType:sortExample#Sort">Ascending</item>
<item name="SimpleType:sortExample#Option:a">Klaus (a)</item>
<item name="SimpleType:sortExample#Option:b">Heinz (b)</item>
<item name="SimpleType:sortExample#Option:c">Peter (c)</item>
<item name="SimpleType:sortExample#Option:d">Christian (d)</item>
<item name="SimpleType:sortExample#Option:e">Jens (e)</item>
<item name="SimpleType:sortExample#Option:f">David (f)</item>