argsort
argsort(
@x ? ## llll (required)
@function null
) -> llll
Returns the indices that would sort an input llll in ascending order. Instead of returning a sorted version of the llll, it provides an index permutation that, when applied to the original llll, results in a sorted sequence.
Arguments
@x ?
[llll]: llll to sort. (required)@function
[function]: optional lambda sorting function. (default:null
).
Output
sorted indices [llll]