| sort | |
![]() rtTable ![]() BeginInsert BorderStyle As rtBorderStyle Cells As rtCell ColumnCount Columns As rtColumn ColumnSpacing dropShadow Flags HTML HTMLStyle As rtHtmlStyle ID LayoutStyle As rtTableStyle parentParagraph Parent ParentContainer ParentObject root RowCount RowDisplayStyle As rtRowDisplayStyle Rows As rtRow RowSpacing Style TableID useBorderColor Values
| version 1.5
Sub sort (keys, alphanumeric, direction, head As Integer, sortemptybehind) Sorts the table. The parameters - keys, alphanumeric and direction may be arrays in case sort is performed on several columns.
keys - either a single column number or an array of column numbers alphanumeric - either single True (alphabetic)/False (numeric) value or an array - one for each column direction - True (ascending)/False (descending) head - number of header rows to exclude from sorting sortemptybehind - True - empty cells are always at the end, False - sorts either first or last depending on "direction"
See cookbook sample. |