You can sort collection data in a profile in ascending or descending order of the values of a database or script field or fields. Only database fields (that is, properties and methods) and scripts that do not, directly or indirectly, reference summary fields are available for sorting.
The sort sequence determines the order in which records are displayed in the report. If groups are defined in the report, the output is in sort order within group order. The group fields are automatically treated as sort fields and do not need to be specified as such.