Ordering in Lists

Ordering in lists.

Here is a list of numbers:

t={17,21,14,9,18}

This gives the elements of t in sorted order:

Sort[t]

This gives the positions of the elements of t, from the position of the smallest to that of the largest:

Ordering[t]

This is the same as (RefLink[Sort, paclet:ref/Sort])[t]:

t[[%]]

This gives the smallest element in the list:

Min[t]