hey i'm trying to do this
it says this:
The function is declared to do a text, but (reversed {_sort::*} in not that type
how can i fix it
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::*}
it says this:
The function is declared to do a text, but (reversed {_sort::*} in not that type
how can i fix it