ListSort

Sorts list elements according to a sort type and sort order.

ListSort( list, sort_type [, sort_order [, delimiters [, includeEmptyFields ] ] ] )

Returns: String

Argument Description Default
list
string, required

a string list

sort_type
string, required

there are different sort types:

  • numeric (sort by number)
  • text (sorts text alphabetically and case sensitive)
  • textnocase (sorts text alphabetically and ignore case sensitivity)
sort_order
string, optional

sort direction:

  • asc(default): ascending sort order
  • desc: descending sort order

asc

delimiters
string, optional

Characters that separate list elements. The default value is comma.

Alias: delimiter

,

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

There are currently no examples for this function.

See also