Contents

arraySort

Description

Sorts array elements numerically or alphanumerically.

Usage Syntax

arraySort(array array,string sort_type,[string sort_order]): boolean

Return Information

Return Type
boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.

Name Type Required Description
array array Yes Name of an array
sort_type string Yes define one of the following:
- numeric: sorts numbers
- text: sorts text alphabetically, taking case into account (case sensitive)
- textnocase: sorts text alphabetically, without regard to case (case insensitive)
sort_order string No sort direction:
- asc(default): ascending sort order
- desc: descending sort order.

category Categories: