.BG
.FN sort
.TL
Sort in Ascending Numeric or Alphabetic Order
.CS
sort(data)
.AG data
vector.
.NA
.RT
vector with its data sorted in ascending order
and any `NA's omitted.  Character data
is sorted according to the
.Sc ASCII
collating sequence, where digits
precede upper-case letters, which precede lower-case letters. The
position of other characters is unintuitive.
.PP
The `names' attribute of `x' is preserved during the sort;
other attributes of `x' will be lost in the sorting.
.PP
Sorting of non-atomic data is allowed, but the definition of ordering
is, inevitably, somewhat arbitrary.  Its usefulness is mostly limited
to special situations (like searching).
.SA
`sort.list' or `order' to do more flexible things.
.KW manip
.WR
