Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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. (Pass by reference)
  2. Optional: descending
Return Value

There is no return value. The array parameter is updated. 

Example
  pjs.define("arr", { type: 'char', length: 1, dim: 3 });

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

  pjs.sortArray(arr);

RPG Equivalent: SORTA

  • No labels