Additions:
==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
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
Deletions:
Deletions:
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
Additions:
Will sort an array in descending order (highest value first).
temp.array = {"c", 1, "a", 2, "b", 3};
... Will output {"c", "b", "a", 3, 2, 1} in RC when on the serverside, or in your #%F2#% menu when on the clientside.
temp.array = {"c", 1, "a", 2, "b", 3};
... Will output {"c", "b", "a", 3, 2, 1} in RC when on the serverside, or in your #%F2#% menu when on the clientside.
Deletions:
temp.array = {"c", "a", "b"};
... Will output {"c", "b", "a"} in RC when on the serverside, or in your #%F2#% menu when on the clientside.