6.1.6. Sorting data

The sort order varies from report to report, but it can be changed by clicking once on any of the column headers. The data in the table is reordered based on the data contained in that column. To reverse the sort order, click in the same column header again. The default numerical and alphabetical sorting behavior varies from column to column, but an upwards arrow in the column header always indicates an ascending sort, while a downward arrow indicates a descending sort.

You are not limited to a simple one-level sort, either. You can specify as many subordinate sort criteria as there are columns. To specify more levels in the sort hierarchy, hold down the shift key and click on other columns until you have achieved your desired sequence. Such a sort is best illustrated in an example. To first sort by code coverage and then by the function name, click twice on the Coverage column header, and then shift-click on the Function Name header. This updates the table's headers to resemble those in Figure 6.3:

Figure 6.3. A Multi-level Sort

A Multi-level Sort

The sort triangles show the direction of sort for each field, and the dots in the lower right of the column headers indicate ordering. In this case, 'Coverage' has one dot, indicating that it is the primary sort criteria, and 'Function Name' has two dots because it is the secondary sort criteria. There is no limit to the number of sort criteria you can specify.

If an element is selected in the table, the table scrolls to keep the selected element in view after a re-sort.

Note

Sorting in the call chains report works somewhat differently than in the other report types. You can still click various columns to add sort criteria and change the direction of the sorts, but only the order in which the children of a particular function appear are subject to the sort criteria.

Copyright © 2007- 2009 ARM Limited. All rights reserved.ARM DUI 0414D
Non-Confidential