Versions Compared

Key

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

...

Return Type

Array

Example

Code Block
languagejs
struct Person {
    string id;
    string name;
}


Person p1; 
p1.name = "John Doe";
p1.id = "1234567";

Person p2; 
p2.name = "Jane Doe";
p2.id = "1234568";

Person p3; 
p3.name = "Jimmy Doe";
p3.id = "1234565";

Person[] persons = {p1, p2, p3};

runnerLog("Array before sort: " + persons);

persons = arrayStructSort(persons, "id");

runnerLog("Array after sort: " + persons);

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "array_routinefunction" and space = currentSpace ( )
labelsarray_routinesfunctions