Skip to content

$arraySort

$arraySort will sort a given array.

Usage

$arraySort[name;type?]

Parameters

FieldTypeDescriptionRequired
namestringArray name.true
typestringType to sort after
1. asc (ascending) 2. dsc (descending)
true

Example(s)

1
client.command({
2
name: "array-sort",
3
code: `
4
$arrayJoin[array;, ]
5
$arraySort[array;asc]
6
$createArray[array;aoi.js;akarui;documents;bot]
7
`
8
});