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.

NameTypeDescription
fieldNameOrPathstringThe field name or SOQL path of the field on which to sort the records.
nullsPositionorderByNullsPositionAn enumerated value that determines where nulls are sorted in the results:
  • first
  • last
sortDirectionorderByDirectionAn enumerated value that determines the sort order of the results:
  • ascending
  • descending