Custom Command
FunctionsArray Functions

$arraySort

Sorts an array, created with $textSplit. Can be sorted numerically or alphabetically, or depending on occurrences.

Usage

$arraySort[Ascending (yes/no, default is no);Sort Type;array name (optional)]

Sort Types:

num: Sort Numerically
alpha: Sort Alphabetically
frequent: Sort By how many element got repeated

Example (Sort Occurrences):

Member
9/5/2026

!!exec $textSplit[3.Mido 1.Azz 2.Rake 2.Rake 3.Mido 3.Mido 4.Finkz; ] $arraySort[no;frequent]

Custom Command
APP
9/5/2026
The sorted list is 3.Mido 2.Rake 4.Finkz 1.Azz

Example (Sort Numerically):

Member
9/5/2026

!!exec $textSplit[1. Azz 3.Mido 2.Rake 4.Finkz; ] $arraySort[yes;num] The sorted list is $arrayJoin[ ]

Custom Command
APP
9/5/2026
The sorted list is 1. Azz 2.Rake 3.Mido 4.Finkz

Example (Sort Alphabetically):

Member
9/5/2026

!!exec $textSplit[3.Mido 1.Azz 2.Rake 4.Finkz; ] $arraySort[yes;alpha] The sorted list is $arrayJoin[ ]

Custom Command
APP
9/5/2026
The sorted list is 1. Azz 4.Finkz 3.Mido 2.Rake

On this page