$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):

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

Custom Command Bot 04/02/2024
The sorted list is
3.Mido
2.Rake
4.Finkz
1.Azz

Example (Sort Numerically):

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

Custom Command Bot 04/02/2024
The sorted list is
1. Azz
2.Rake
3.Mido
4.Finkz

Example (Sort Alphabetically):

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

Custom Command Bot 04/02/2024
The sorted list is
1. Azz
4.Finkz
3.Mido
2.Rake