https://skripthub.net/docs/?id=3542 https://skripthub.net/docs/?id=3544 https://skripthub.net/docs/?id=2158
function sort(indices: strings, values: numbers, descending: boolean = true) :: strings:
loop {_indices::*}:
set {_sort::%{_values::%loop-index%}%.%loop-index%} to loop-value
return (reversed {_sort::*}) if {_descending} is true, else {_sort::*}
Hi! You can use what I have linked above to accomplish this. This requires skript-holo and thats all (pretty sure, its late and im not thinking.)