$arraySort

sort the array from $textsplit
depends if you want to sort numerically or alphabetically or 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):

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

Custom Command Bot 09/25/2022
The sorted list is
3.Mido
2.Rake
4.Finkz
1.Azz

Example (Sort Numerically):

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

Custom Command Bot 09/25/2022
The sorted list is
1. Azz
2.Rake
3.Mido
4.Finkz

Example (Sort Alphabetically):

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

Custom Command Bot 09/25/2022
The sorted list is
1. Azz
4.Finkz
3.Mido
2.Rake