Text Suite
480
Command: sort
Sorts the paragraphs in the specified range or selection.
Syntax
sort text range Required. An expression that returns a text range object.
[exclude header Boolean] Optional. True to exclude the first row or paragraph from the sort
operation. The default value is False.
[field number integer] Optional. The fields to sort by. Word sorts by field number, then by
field number two, and then by field number three.
[sort field type enumeration] Optional. The respective sort types for field number, field
number two, and field number three. Can be one of the following: sort field alphanumeric,
sort field date, sort field syllable, sort field japan jis, sort field stroke, or sort field korea ks.
The default value is sort field alphanumeric.
[sort order enumeration] Optional. The sorting order to use when sorting field number, field
number two, and field number three. Can be one of the following: sort order ascending or
sort order descending. The default value is sort order ascending.
[field number two integer] Optional. The fields to sort by. Word sorts by field number, then by
field number two, and then by field number three.
[sort field type two enumeration] Optional. The respective sort types for field number, field
number two, and field number three. Can be one of the following: sort field alphanumeric,
sort field date, sort field syllable, sort field japan jis, sort field stroke, or sort field korea ks.
The default value is sort field alphanumeric.
[sort order two enumeration] Optional. The sorting order to use when sorting field number,
field number two, and field number three. Can be one of the following: sort order ascending
or sort order descending. The default value is sort order ascending.
[field number three integer] Optional. The fields to sort by. Word sorts by field number, then
by field number two, and then by field number three.
[sort field type three enumeration] Optional. The respective sort types for field number, field
number two, and field number three. Can be one of the following: sort field alphanumeric,
sort field date, sort field syllable, sort field japan jis, sort field stroke, or sort field korea ks.
The default value is sort field alphanumeric.
[sort order three enumeration] Optional. The sorting order to use when sorting field number,
field number two, and field number three. Can be one of the following: sort order ascending
or sort order descending. The default value is sort order ascending.
[sort column Boolean] Optional. True to sort only the column specified by the table object.
[separator enumeration] Optional. The type of field separator. Can be one of the following: sort
separate by commas, sort separate by default table separator, or sort separate by tabs. The
default value is sort separate by commas.
[case sensitive Boolean] Optional. True to sort with case sensitivity. The default value is False.