Versions Compared

Key

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

Sort Array.Sorts the elements in the specified array, table, or multiple-occurrence data structure. Ascending by default, with optional descending parameter.

Parameters
  1. Array, table, or multiple-occurrence data structure.
  2. Optional: descending
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);

RPG Equivalent: SORTA