listSort

Overview ColdFusion Open BlueDragon Lucee

Sorts list elements according to a sort type and sort order. Returns a sorted copy of the list. [sort_type - quicky] numeric: sorts numbers text: sorts text alphabetically, taking case into account - aabzABZ, if sort_order = "asc" - ZBAzbaa, if sort_order = "desc" textnocase: sorts text alphabetically, without regard to case - aAaBbBzzZ, in an asc sort; - ZzzBbBaAa, in a desc sort;

Attributes

Name Required Type Default Description
delimiters No String
3
includeEmptyFields No if set to true, empty values are included as well
list Yes String
10
localSensitive No Boolean Performs locale sensitive sort, if tyue. Default is false
sort_order No String
sort_type Yes String