There are two methods for specifying how the data in a report is sorted. In the first method, the report is sorted based on a key you select for the main table used for the report. In the second method, you create a sorting definition based on the fields in the tables used for the report. Information about sorting is divided into the following sections: