Sorting grouping fields

Grouping records helps people who read the document understand the data better. Grouping the data sets up a type of hierarchy within the document, and an inherent or implied sort order for the data in the document. The data is sorted first by the first field in the Grouping panel, then by the next field, and so on. To reorder the grouping, you can move the fields in the Grouping panel (as described in the procedure below).

You can select which grouping fields to sort, the sorting criteria (what to sort by), and the sorting order (ascending or descending). Any object in the Grouping panel can be sorted.

Prerequisites

To sort grouping fields

  1. Open the document in Design or Editable Mode.  

  2. From the Data menu, select Sort Document. The Sort Document dialog box opens.

  3. From the Sort By drop-down list in the Grouping area, select the object to sort. The list contains all the objects in the primary dataset, regardless of where or whether they are placed on the document.

  4. Select Ascending or Descending for each object.

    Note: You cannot change the Order if the Criteria of an attribute is set to Default. You can change the order of a custom group only if you selected Sort on Attribute ID in the Criteria.

  5. Change each grouping field as necessary. When you are done, click OK to apply the changes.