ListSort

Sorts a delimited list and returns the result

Method Signature

ListSort(list=[string], sortType=[any], sortOrder=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean], localeSensitive=[boolean], callback=[any])

Arguments

Argument
Type
Required
Description
Default

list

string

true

The list to sort

sortType

any

false

Options are text, numeric, or textnocase

sortOrder

string

false

Options are asc or desc

asc

delimiter

string

false

string the list delimiter

,

includeEmptyFields

boolean

false

boolean whether to include empty fields in the returned result

false

multiCharacterDelimiter

boolean

false

boolean whether the delimiter is multi-character

false

localeSensitive

boolean

false

Sort based on local rules

callback

any

false

Optional function to use for sorting - if the sort type is a closure, it will be recognized as a callback

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC