💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 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" /> ```