Sorting

Search results in VBAPI are automatically sorted based on the first field listed in the selectedFields array of the SearchRequest.


Sorting Behavior

  • Results are sorted in ascending order by default.
  • The first field in selectedFields determines the sort order.
  • No additional parameters are needed to enable sorting.

Example

Copy
Copied
"selectedFields": [
  { "tableName": "Members", "columnName": "First_Name" },
  ...
]

In this example, results will be sorted by Members.First_Name.

This default sorting mechanism ensures that results are consistent and predictable without requiring extra configuration.