ccSort

Syntax

ccSort(Array:Pointer,NumOfElements:Uint,TypeofElement:String,OPT ASCDSC = 1:Sword,OPT SeizeofElement:Uint)

Description

Sorts an Array ascending or descending order.

Parameters

Array - Pointer to the Array to be sorted.
NumOfElements - The number of elements in the array to be sorted.
TypeofElement -
"Char"
"SChar"
"Word"
"SWord"
"Uint"
"Int"
"UInt64"
"Int64"
"Float"
"Double"
"String"
ASCDSC - Optional sortingorder
1 = Ascending
-1 = Descending
SeizeofElement - Optional overwrite of Baselen. Main usage by Istring array where SeizeofElement is:
DEF ArrayIString[SeizeofElement,n] as IString.

Return value

None

Remarks

Example usage

DEF ArrayIString[10,100] as IString
ccSort(ArrayIString,100,"STRING",1,10)
See ccSort_DEMO.eba