Sorting a List of Answers

You can have HotDocs alphabetize your list in either ascending or descending alphanumeric order (for example, A to Z and 1 to 9). You can sort based on any repeated variable. If there’s more than one repeated variable in the REPEAT instruction, you can sort on two levels—for example, first on State, then on City (or cities within the state).

To sort a repeated list of answers

  1. At the template, edit the REPEAT instruction you want to sort.
  2. Click Show Advanced. The dialog box changes to show sorting and filtering options.
  3. Click the Sort by drop-down button and choose the variable on which you want to sort.
  4. Select Ascending or Descending.
  5. Optionally, to sort on a second level, select a variable at the Then By field and choose either Ascending or Descending

When you close the REPEAT Field dialog box, you can see the names of the variables on which you are sorting added to the REPEAT instruction.

You can sort the same list differently at another place in the document. Edit that specific REPEAT instruction and specify the sort order you want, following the instructions given above.