$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)]
1
Sort Types:
num
: Sort Numerically
alpha
: Sort Alphabetically
frequent
: Sort By how many element got repeated
Example (Sort Occurrences):
Member01/03/2025
!!exec $textSplit[3.Mido
1.Azz
2.Rake
2.Rake
3.Mido
3.Mido
4.Finkz;
]
$arraySort[no;frequent]
Custom Command Bot 01/03/2025
The sorted list is
3.Mido
2.Rake
4.Finkz
1.Azz
Example (Sort Numerically):
Member01/03/2025
!!exec $textSplit[1. Azz
3.Mido
2.Rake
4.Finkz;
]
$arraySort[yes;num]
The sorted list is
$arrayJoin[
]
Custom Command Bot 01/03/2025
The sorted list is
1. Azz
2.Rake
3.Mido
4.Finkz
Example (Sort Alphabetically):
Member01/03/2025
!!exec $textSplit[3.Mido
1.Azz
2.Rake
4.Finkz;
]
$arraySort[yes;alpha]
The sorted list is
$arrayJoin[
]
Custom Command Bot 01/03/2025
The sorted list is
1. Azz
4.Finkz
3.Mido
2.Rake