dynSortAsc()
Sorts a field in ascending order.
Synopsis
int dynSortAsc(<dyn_type> &dynvar);
Parameters
Parameter | Meaning |
---|---|
dynvar | Variables to be sorted |
Return Value
Returns the number of elements, if an attempt is made to sort other types, -1.
Errors
A message is issued in the event of incorrect or missing arguments or if there is no variable.
Description
Sorts variables of the type <dyn_type> in ascending order.
Example
main()
{
dyn_int d;
d=makeDynInt(60,30,80);
dynSortAsc(d);
DebugN(d); // 30 60 80
}
Assignment
Dynamic fields
Availability
CTRL