Skip to content

Ordering

The permutation of indices that would sort the collection into increasing order.

Wolfram LanguageOrdering
Ordering(collection)the permutation of indices that sorts the collection into increasing order.

Domain: Collections

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