Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Array, table, or multiple-occurrence data structure. (Pass by reference)
  2. Optional: descending
Return Value

...

  1.  
  2. Descending boolean flag (optional)
Example
Code Block
languagejavascript
  pjs.define("arr", { type: 'char', length: 1, dim: 3 });


 arr[1] = 'b';
  arr[2] = 'c';
  arr[3] = 'a';

pjs.sortArray(arr);  // Sort ascending
pjs.sortArray(arr, true);  // Sort descending

RPG Equivalent: SORTA

SORTA