Navigation:  thinBasic Modules > Core > Array functions >

ARRAY SORT

Previous pageReturn to chapter overviewNext page

 

Description

 

Sort an array or part of the array.

 

Syntax

 

ARRAY SORT ArrayVariable([StartIndex]) [FOR nElements] [,{ASCEND | DESCEND}]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

ArrayVariable


No

Name of a declared and already dimensioned array.

StartIndex

Number

Yes

The element index inside the array from which to start. If omitted, 1 is assumed

nElements

Number

Yes

Number of elements to sort starting from StartIndex. If omitted, end of the array is assumed.

 

Remarks

 

Restrictions

 

See also

 

LBound, UBound, ARRAY ASSIGN,

 

Examples

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com