Order Class

Contains details about how to sort the rows in the result set. Equivalent to an ORDER BY statement in a SOQL query.

DataSource

Used in the order property on the DataSource.TableSelection class.

The following are properties for Order.

  • columnName

    Name of the column whose values are used to sort the rows in the result set.

  • direction

    Direction for sorting rows based on column values.

  • tableName

    Name of the table whose column values are used to sort the rows in the result set.

Name of the column whose values are used to sort the rows in the result set.

public String columnName {get; set;}

Type: String

Direction for sorting rows based on column values.

public DataSource.OrderDirection direction {get; set;}

Type: DataSource.OrderDirection

Name of the table whose column values are used to sort the rows in the result set.

public String tableName {get; set;}

Type: String

The following are methods for Order.

Creates an instance of the DataSource.Order class.

public static DataSource.Order get(String tableName, String columnName, DataSource.OrderDirection direction)

  • tableName:

    Type: String

    Name of the table whose column values are used to sort the rows in the result set.

  • columnName:

    Type: String

    Name of the column whose values are used to sort the rows in the result set.

  • direction:

    Type: DataSource.OrderDirection

    Direction

    for sorting rows based on column values.

Type: DataSource.Order