ArraySort


 

ArraySort>array_name,[,suffixformat]

 

Sorts the given array in ascending alphanumeric order.

 

Suffixformat is used to specify the format used for the array suffix as array variables in Macro Scheduler can take any format so desired.  If  omitted suffixformat is set to "_n" where n is the numeric placeholder.  This would match an array with the format array_1, array_2, etc.  An array format that looks like array[1], array[2] ... array[n] has the suffix format "[n]" (without the quotes).

 

ArraySort works with numeric array indexes only.  Only arrays starting at index 0 or 1 will be recognised.  ArraySort assumes that the array index advances by 1 for each element.  If there are any gaps ArraySort will stop at the last element before the gap.

 

See also: ArrayCopy, ArrayRename, ArrayCount, ArrayDim, ArrayFind, DelArray, Arrays

Abbreviation: ARS

 

Example:

 

GetFileList>%SCRIPT_DIR%\*.*,MyFiles

Separate>MyFiles,;,FilesArray

ArraySort>FilesArray