sort (list_or_array, compare_function)
A list or an array.
A function on two arguments used to compare elements in the list or array.
This function sorts the list or array in place, destructively modifying the order of the elements. The compare_function must be a function on two arguments which returns: an integer value less than zero if the first argument is ordinally less than the second, zero if the two arguments are ordinally equal, and greater than zero if the first argument is ordinally greater than the second. This function uses the quicksort algorithm.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.