string.listSort()
Sorts list elements according to a sort type and sort order.
string.listSort( sort_type=string, sort_order=string, delimiters=string, includeEmptyFields=boolean )
Returns: String
Examples
numericList = "-1,-9,-6,5,0,2,8";
writedump(numericList.listsort("numeric","asc"));
writeoutput("<br>");
strList = "Adobe,coldfusion,lucee,15,LAS";
writedump(strList.listsort("text","asc"));
writeoutput("<br>");
strListOne = "Adobe@coldfusion@lucee@15@LAS";
writedump(strListOne.listsort("textnocase","asc","@"));