C.89 SortList

Sort a delimited list of items in their natural string order. Note that the value and refid attributes are mutually exclusive, and the value attribute takes precedence if both are specified.

Table C.121: Attributes

propertyStringThe name of the property to set.n/aYes
overwriteBooleanIf the property is already set, should we change it's value.falseNo
valueStringThe list of values to process, with the delimiter character, indicated by the "delimiter" attribute, separating each value.n/aYes, unless "refid" is specified.
refidStringThe id of where the list of values to sort is stored.n/aYes, unless "value" is specified.
delimiterStringThe delimiter string that separates the values in the "list" attribute.,No
flagsStringSort flags depending on the php version and one of: SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_LOCALE_STRING, SORT_NATURAL, SORT_FLAG_CASEn/aNo

C.89.1 Example

<property id="test" name="my.list" value="z;y;X;w;v;U;t" />
                <sortlist property="my.sorted.list" refid="test"
                flags="SORT_NATURAL|SORT_FLAG_CASE" />