Chapter 11: Lists 259
SortA(, SortD(
SortA(, SortD(SortA(, SortD(
SortA(, SortD(
SortA( (sort ascending) sorts list elements from low to high values. SortD( (sort
descending) sorts list elements from high to low values. Complex lists are sorted based
on magnitude (modulus).
With one list, SortA( and SortD( sort the elements of listname and update the list in
memory.
With two or more lists, SortA( and SortD( sort keylistname, and then sort each dependlist by
placing its elements in the same order as the corresponding elements in keylistname. All
lists must have the same dimension.
8: Select( Selects specific data points.
9: augment( Concatenates two lists.
0: List4matr( Stores a list to a matrix.
A: Matr4list( Stores a matrix to a list.
B: ÙDesignates the list-name data type.
SortA(listname)SortD(listname)
NAMES OPS MATH