Clear sort fields

Command group Flag affected Reversible Execute on client Platform(s)
Sort fields NO YES NO All

Syntax

Clear sort fields

Description

This command removes the sort fields that are currently active. This enables the data to be printed without any sorting taking place. Alternatively, the command removes the current sort fields so you can specify new sort levels with Set sort field.

If you use Clear sort fields in a reversible block, the original sort values are restored when the method terminates.

Example

# Remove the current sort fields and then set the sort
# field as Surname
Clear sort fields
Set sort field fAccounts.Surname
Set report name rMyReport
Send to screen
Print report