Sorting Tabular Reports Overview

Reference:

You sort a report using vertical (BY) and horizontal (ACROSS) phrases:

A request can include up to 128 sort phrases consisting of any combination of BY and ACROSS phrases.

Additional sorting options include:

Reference: Sorting and Displaying Data

There are two ways that you can sort information, depending on the type of display command you use:

  • You can sort and display individual values of a field using the PRINT or LIST command.
  • You can group and aggregate information. For example, you can show the number of field occurrences per sort value using the COUNT command, or summing the field values using the SUM command.

When you use the display commands PRINT and LIST, the report may generate several rows per sort value; specifically, one row for each occurrence of the display field. When you use the commands SUM and COUNT, the report generates one row for each unique set of sort values. For related information, see Sorting With Multiple Display Commands.

For details on all display commands, see Displaying Report Data.