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
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki