The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home MathPack DataTable Methods SortColNames | |||||||||||
See also: OnSortExchange, SortCols, SortColAttributes | |||||||||||
SortColNames |
|||||||||||
The method SortColNames sorts the data contained in the range [LowCol,LowRow] to [HighCol,HighRow], the column names, the column attributes, and the decimal place indicators according to the column names. The values outside this range are not affected. The parameter Ascending specifies whether the values are to be sorted in ascending (TRUE) or descending (FALSE) order. The additional parameter IgnoreCase in version [2] of this method controls whether lower and upper case letters are distinguished. The event OnSortExchange is triggered whenever two columns have to be exchanged during the sorting process.
The sorting is performed by a modified bubble sort (CombSort), which has been reported to be comparable in speed to QuickSort (see also R.Box, S. Lacey, BYTE magazine, April 1991).
|