argsort

compas_fab.utilities.argsort(numbers)[source]

Returns the indices that would sort an array of numbers.

The function is similar to NumPy’s argsort function.

Note

For a large list of numbers reconsider using NumPy’s argsort function, since this function might take too long.