Difference between revisions of "ASORT()"

From Lianjapedia
Jump to: navigation, search
 
Line 21: Line 21:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Array Processing]]
 
 
[[Category:Array Processing Functions]]
 
[[Category:Array Processing Functions]]

Latest revision as of 09:05, 7 December 2012

Purpose

Function to sort the elements of a specified array

Syntax

ASORT(<array> [,<expN1>, [<expN2> [, <expN3> ] ])

See Also

AADD(), AAVERAGE(), ACOPY(), ADEL(), ADESC(), ADIR(), AELEMENT(), AFIELDS(), AFILL(), AINS(), ALEN(), AMAX(), AMIN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASIZE(), ASTORE(), ASTRING(), ASUBSCRIPT(), ASUM(), COPY TO ARRAY, DECLARE, DIMENSION, GATHER, IN_ARRAY(), IS_ARRAY(), LOCAL, PRIVATE, PUBLIC, RELEASE, RESTORE, SAVE, SCATTER

Description

The ASORT() function sorts all the character elements in the specified <array>. The sort can start at element <expN1> and finish at element <expN2>. The ASORT() function will stop sorting when it finds a non-character element. If <expN3> is specified as a non-zero value, then the array is sorted in reverse order.

Example

use accounts
declare names[reccount(),1]
copy to array names fields company
asort(names)