Usage
Syntax: array.sortascending()
Explanation
Will sort an array in ascending order (smallest value first).
Example
function onCreated() { temp.array = {"c", 1, "a", 2, "b", 3}; temp.array.sortascending(); echo(temp.array); }
... Will output {1, 2, 3, "a", "b", "c"} in RC when on the serverside, or in your F2 menu when on the clientside.
Categories
CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]