Skip to content

$arrange

$arrange returns the given numbers in ascending or descending order.

Usage

$arrange[order;separator;...numbers]

Parameters

FieldTypeDescriptionRequired
orderstringasc (ascending), or desc (descending): the order in which the numbers will be sorted in.true
separatorstringThe separator which separates the numbers.true
…numbersnumberThe numbers to sort.true

Example(s)

This will sort the following numbers: (returns: 1, 2, 3, 4, 5, 6))

1
client.command({
2
name: "arrange",
3
code: `
4
$arrange[asc;, ;1;6;4;2;5;3]
5
`
6
});