This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

PadRightMinors (modified)


FilledSmallSquareOrdering[list] gives the positions in list at which each element of Sort[list] appears.

FilledSmallSquareOrdering[list, n] gives the positions in list at which the first n elements of Sort[list] appear.

FilledSmallSquareOrdering[list, -n] gives the positions of the last n elements of Sort[list].

FilledSmallSquareOrdering[list, n, p] uses Sort[list, p].

FilledSmallSquare Example: Ordering[c, a, b] LongRightArrow.

FilledSmallSquare In a numerical list Ordering[list, n] gives the positions of the n smallest elements. Ordering[list, -n] gives the positions of the n largest elements.

FilledSmallSquare If there are several smallest elements in list, Ordering[list, 1] will give only the position of the one that appears first.

FilledSmallSquarelist[[Ordering[list]]] is the same as Sort[list].

FilledSmallSquareOrdering[list, seq] is equivalent to Take[Ordering[list], seq].

FilledSmallSquareOrdering[list, All, p] gives the position at which all elements of list appear in Sort[list, p].

FilledSmallSquareOrdering can be used on expressions with any head, not only List.

FilledSmallSquare See The Mathematica Book: Section 1.8.13.

FilledSmallSquare See also: Max, Min, Position, OrderedQ.

Further Examples

PadRightMinors (modified)