Creating and modifying sort definitions
You can create a new sort definition, and you can edit, copy, or delete an existing sort definition.
When you define sort keys you are creating a sort definition. Sort keys (or rules) can define how you want information sorted. Sort keys determine which part of the record to sort and the order of the sort. The sort keys are applied in numerical order.
To create a sort definition |
1.
|
|
Click Tools Sort.
|
2.
|
|
Click New.
|
3.
|
|
In the Sort description box, type a name.
|
4.
|
|
In the Sort by area, enable one of the following options:
|
•
|
Line (ends with one hard return) — sorts by line
|
•
|
Paragraph (ends with multiple hard returns) — sorts by paragraph
|
•
|
Merge record — sorts by merge record
|
•
|
Table row — sorts by table row
|
•
|
Parallel column row — sorts by table column or parallel column
|
5.
|
|
In the Keys (sorting rules) area, choose one of the following from the Type list box:
|
•
|
Alpha — sorts in alphanumeric order by letters and then by numbers
|
•
|
Numeric — sorts by numbers only
|
•
|
Date — sorts by date
|
6.
|
|
In the Keys (sorting rules) area, choose one of the following from the Sort order list box:
|
•
|
Ascending — sorts from smallest to largest order or first to last (1 to 9)
|
•
|
Descending — sorts from largest to smallest order or last to first (9 to 1)
|
7.
|
|
In the Keys (sorting rules) area, tab to the record subdivision boxes and type a value in one of the following boxes that corresponds to the part of the record you want to sort:
|
•
|
Line
|
•
|
Field
|
•
|
Word
|
•
|
|
When you create a new sort definition, it is saved in the Sort by box.
|
•
|
|
You can customize a sort by using sort keys. For information about sort keys, see “Working with sort keys.”
|
To edit a sort definition |
1.
|
|
Click Tools Sort.
|
2.
|
|
From the Sort by box, choose a sort definition.
|
3.
|
|
Click Edit.
|
4.
|
|
In the Sort description box, type a new name.
|
5.
|
|
Modify any settings.
|
6.
|
|
In the Sort by area, enable one of the following options:
|
•
|
Line (ends with one hard return) — sorts by line
|
•
|
Paragraph (ends with multiple hard returns) — sorts by paragraph
|
•
|
Merge record — sorts by merge record
|
•
|
Table row — sorts by table row
|
•
|
Parallel column row — sorts by table column or parallel column
|
•
|
Date — sorts by date
|
7.
|
|
In the Keys (sorting rules) area, choose one of the following from the Type list box:
|
•
|
Alpha — sorts in alphanumeric order by letters and then by numbers
|
•
|
Numeric — sorts by numbers only
|
•
|
Date — sorts by date
|
8.
|
|
In the Keys (sorting rules) area, choose one of the following from the Sort order list box:
|
•
|
Ascending — sorts from smallest to largest order or first to last (1 to 9)
|
•
|
Descending — sorts from largest to smallest order or last to first (9 to 1)
|
9.
|
|
In the Keys (sorting rules) area, tab to the record subdivision boxes and type a value in one of the following boxes that corresponds to the part of the record you want to sort:
|
•
|
Line
|
•
|
Field
|
•
|
Word
|
To copy a sort definition |
1.
|
|
Click Tools Sort.
|
2.
|
|
From the Sort by box, choose a sort definition.
|
3.
|
|
Click Copy.
|
4.
|
|
In the Sort description box, type a new name.
|
To delete a sort definition |
1.
|
|
Click Tools Sort.
|
2.
|
|
From the Sort by box, choose a sort definition.
|
3.
|
|
Click Delete.
|