多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 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 NameTypeDescriptionDefaultRequired`property``String`The name of the property to set.n/aYes`overwrite``Boolean`If the property is already set, should we change it's value.falseNo`value``String`The list of values to process, with the delimiter character, indicated by the "delimiter" attribute, separating each value.n/aYes, unless "refid" is specified.`refid``String`The id of where the list of values to sort is stored.n/aYes, unless "value" is specified.`delimiter``String`The delimiter string that separates the values in the "list" attribute.,No`flags``String`Sort 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" delimiter=";" flags="SORT_NATURAL|SORT_FLAG_CASE" /> ```