Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

SortColumn Class

Contains information about the sort column used in the report.

Namespace

Reports

SortColumn Methods

The following are methods for SortColumn.

getSortColumn()

Returns the column used to sort the records in the report.

Signature

public String getSortColumn()

Return Value

Type: String

getSortOrder()

Returns the the sort order— ascending or descending—for the sort column.

Signature

public Reports.ColumnSortOrder getSortOrder()

Return Value

Type: Reports.ColumnSortOrder

setSortColumn(sortColumn)

Sets the column used to sort the records in the report.

Signature

public void setSortColumn(String sortColumn)

Parameters

Return Value

Type: void

setSortOrder(SortOrder)

Sets the sort order— ascending or descending—for the sort column.

Signature

public void setSortOrder(Reports.ColumnSortOrder sortOrder)

Parameters

Return Value

Type: void