arraysort(
arraysort(
ARRAY
,
SEPARATOR
)

The arraysort( function alphabetizes (A-Z) the elements in a text array (see Text Arrays).

Parameters

This function has two parameters:

array – The text array that you want to sort.

separator – Is the separator character for this array.

Description

This function returns a copy of the original text array with the elements sorted in alphabetical order (see Text Arrays). Upper and lower case are ignored, so Bill will sort into the same position as bill.

    arraysort("Red,green,Blue",",") ☞ Blue,green,Red
    arraysort("Jack Alan Mark Bill Greg"," ") ☞ Alan Bill Greg Jack Mark

See Also

- array( -- extracts a single data item from a text array or a data array (see Text Arrays and Data Arrays).
- arraydeduplicate( -- removes duplicate elements from a text array (see Text Arrays).
- arrayelement( -- converts between character positions and array element numbers in a text array.
- arraymultisort( -- sorts a two-dimensional array on the key of one or more of its columns.
- arraynumericsort( -- sorts a text array in numeric order (see Text Arrays).
- arrayrange( -- extracts a series of data items from a text array or a data array (see Text Arrays and Data Arrays).
- arrayreverse( -- reverses the order of the elements in a text array or a data array (see Text Arrays and Data Arrays).
- arraysearch( -- searches a text array or a data array (see Text Arrays and Data Arrays) to see if it contains a specific value.
- extract( -- extracts a single data item from a text array, and can also be used to count the number of items in the array.
- Text Arrays -- A numbered collection of text values.

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0, however, this is now a native function instead of being implemented with the call( function.