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....



SortRowAttributes


Unit:SDL_datatable
Class: TNTabEd
Declaration: procedure SortRowAttributes (Ascending: boolean; LowCol, LowRow, HighCol, HighRow: integer);

The method SortRowAttributes sorts the data contained in the range [LowCol,LowRow] to [HighCol,HighRow], the row names, and the row attributes according to the row attributes. The values outside this range are not affected. The parameter Ascending specifies whether the valus are to be sorted in ascending (TRUE) or descending (FALSE) order.

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).



Last Update: 2023-Dec-13