Revision [1072]
This is an old revision of sortdescending made by EditorDeas on 2014-08-16 20:00:53.Usage
Syntax: array.sortdescending()
Explanation
Will sort an array in descending order (highest value first).
Example
function onCreated() { temp.array = {"c", 1, "a", 2, "b", 3}; temp.array.sortdescending(); echo(temp.array); }
... Will output {"c", "b", "a", 3, 2, 1} 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]