Revision [1074]

Last edited on 2015-12-21 11:10:40 by EditorDeas [rollback, dono what happend]
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
Deletions:


Revision [1073]

Edited on 2015-02-12 11:27:42 by EditorDeas [deleted spam]
Deletions:
==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


Revision [1072]

Edited on 2014-08-16 20:00:53 by EditorDeas [updated example]
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.
Deletions:
Will sort an array of text descendingly.
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.


Revision [1070]

The oldest known version of this page was created on 2014-08-16 19:51:10 by EditorDeas [Page Created]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki