Ordering
This chapter describes how you sort the data of a report.
Sorting should always be part of the layout. The order in which the objects are stored in the project does not follow the Tags, especially when Tags were changed after the objects were inserted.
Sort in the Layout
Open the Report Designer with Edit report layout... and select the Detail band, e.g. in the Report Explorer. In the Properties panel on the Data tab click on ... at Sort Fields.

Alternatively you click on the cog wheel icon at the right side of the band and then on the ... icon at the Sort Fields line.
The dialog Group Field Collection Editor shows up. Click on Add and select the property. For each property you set the Sort Order to Ascending or Descending.
You can add several properties. PlantReporter sorts by the first property. Records with the same value are then sorted by the second property, and so on. The standard report "PID Instrumentlist" for example sorts by the type of the instrument first and then by the Tag.

A detailed example with screenshots is described under Define Layout.
Sort Groups
If the report is grouped, the groups are sorted by their group field. You set the order in the Group and Sort panel of the Report Designer under Sort Order. See Grouping.
Remark: Sort in the Report Designer and leave the Sort Order column in the query of the report configuration empty.
Last updated