The returned response can be sorted by a field of the Contact Object in descending or ascending order. The two keys
sort are appended to the URI for the Contacts API and can be used in conjunction with filtering and bucketing.
The URI with sorting has the following syntax:
sort-fields key determines which field of the Contact Object will be used to sort the returned response. The
sort key determines if the Contact Objects returned in the response will be in ascending or descending order.
sort key may consist of the following:
asc- sort in ascending order (default)
desc- sort in descending order
The example below returns contacts whose phone numbers begin with 415. The returned Contact Objects contain only the
displayName field in ascending order.
This example returns contacts sorted by the company name in descending order. The returned response has Contact Objects that
contain only the