Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

array

Method:

Sort

void Sort(int mode=asc, string compareFunc, int alg)

Description:

Sorts elements in array

Parameters:
mode

Determines the order of the array after the sort. Possible values can be constant.array.asc and constant.array.desc (default is constant.array.asc)

compareFunc

If this parameter is "" or not specified, the sort is performed executing a comparison operator for the class type of the array elements. Otherwise, if this parameter is specified, the function with the given name will be called to compare elements of array. The prototype of the function (callback) must be:

function boolean CompareFunc(array *theArray, int index1, int index2, int mode);

The array, two indexes and the mode (asc or desc) will be passed. The function must return:true if elements must be swapped, false if not.

alg

Determines the sort algorithm. Possible values can be constant.array.bubble and constant.array.shell. If it is not specified, shell is used if elements are more than 20, bubble otherwise.

Returns:

Nothing

See also:

method.array.Reverse

Implementation:
C
 

Return to the array class