Ordering
The permutation of indices that would sort the collection into increasing order.
Wolfram Language
Ordering✓Ordering(collection)the permutation of indices that sorts the collection into increasing order.Details
: applying the permutation at those positions recovers Sort's result. - Ties break in favor of earlier position, i.e. it's a stable ordering.
- compute-engine's Ordering only computes the full permutation.
Examples
See also: Sort