Sorting single and multiple fields

In single field sorting, all the records used in the report are sorted based on the values in a single field. Sorting an inventory report by stock number or sorting a customer list by customer number are examples of single field sorts.

In multiple field sorts, the Report Designer first sorts the records based on the values in the first field selected, putting them in ascending or descending order as specified. When two or more records have the same field value in the first sort field, the program then sorts those records based on the value in the second sort field.

For example, if you choose to sort first by the {customer.COUNTRY} field and then by the {customer.REGION} field, both in ascending order, the report would appear with countries listed in alphabetic order, and regions within each country listed in alphabetic order. Any other fields, such as the postal codes within each region, would remain unsorted.

You create single or multiple field sorts using the same procedure.

To sort your data
  1. On the Report menu, click Sort Records.

    The Record Sort Order dialog box appears.

  2. Highlight the field to be sorted from the Report Fields list.
  3. Click the Add button.

    The selected field is added to the Sort Fields list.

  4. Specify the sort direction.
  1. If sorting by more than one field, highlight the second field you want the data to be sorted by and add it to the Sort Fields list.
  2. As you add each field to the Sort Fields list, specify the sort direction.
  3. Click OK when finished.

    Records are sorted based on the values in the Sort Fields list.



Seagate Software, Inc.
http://www.seagatesoftware.com
Please send comments to:
techpubs@seagatesoftware.com