ListViewOrderBy
To determine the order in which records are returned from a list view, use the ListViewOrderBy object with executeListView().
The ListViewOrderBy object is returned by the describeSoqlListViews() call, is an optional input to the executeListView() call, and has these properties.
| Name | Type | Description |
|---|---|---|
fieldNameOrPath | string | The field name or SOQL path of the field on which to sort the records. |
nullsPosition | orderByNullsPosition | An enumerated value that determines where nulls are sorted in the results:
|
sortDirection | orderByDirection | An enumerated value that determines the sort order of the results:
|