Table Suite
523
Command: sort ascending
Sorts paragraphs or table rows in ascending alphanumeric order. The first paragraph or table row is
considered a header record and isn't included in the sort. To include the header record in a sort, use
the
table sort
command.
Note This command offers a simplified form of sorting intended for data merge data sources that
contain columns of data. For most sorting tasks, use the
table sort
command.
Syntax
sort ascending table/column Required. An expression that returns a column or table object.
Example
This example sorts the table that contains the selection in ascending order.
set isInTable to get selection information selection ¬
information type with in table
if isInTable is "true" then
sort ascending table 1 of selection
else
display dialog "The insertion point is not in a table."
end if
Command: sort descending
Sorts paragraphs or table rows in descending alphanumeric order. The first paragraph or table row
is considered a header record and isn't included in the sort. To include the header record in a sort,
use the
table sort
command.
Note This command offers a simplified form of sorting intended for mail-merge data sources that
contain columns of data. For most sorting tasks, use the
table sort
command.
Syntax
sort descending table/column Required. An expression that returns a table or column object.
Example
This example sorts the table that contains the insertion point in descending alphanumeric order.
set isInTable to get selection information selection ¬
information type with in table
if isInTable is "true" then
sort descending table 1 of selection
else
display dialog "The insertion point is not in a table."
end if