qsort
qsort |
procedure qsort(sense:boolean, lvals:list of integer|real)
procedure qsort(sense:boolean, lvals:list of string|text)
procedure qsort(sense:boolean, vals:array of integer|real)
procedure qsort(sense:boolean, vals:array of string|text)
procedure qsort(sense:boolean, vals:array of integer|real, ndx:array)
procedure qsort(sense:boolean, vals:array of string|text, ndx:array)
procedure qsort(sense:boolean, vals:array of integer|real, ndx:array, sel:set)
procedure qsort(sense:boolean, vals:array of string|text, ndx:array, sel:set)
procedure qsort(sense:boolean, vals:array of integer|real, lndx:list, sel:set)
procedure qsort(sense:boolean, vals:array of string|text, lndx:list, sel:set)
sense
|
Sense of the sorting:
|
||||
lvals
|
List to be sorted
|
||||
vals
|
One-dimensional array to be sorted
|
||||
ndx
|
One-dimensional array of the same type and size as the indexing set of
vals
|
||||
lndx
|
List of the same type as the indexing set of
vals
|
||||
sel
|
Subset of the indexing set of
vals
|
declarations ar: array(1..10) of real end-declarations ar:: [1.2, -3, -8, 10.5, 4, 7, 2.9, -1, 0, 5] qsort(true, ar) writeln("Sorted array: ", ar)
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.