sort query is encoded JSON to sort resources on list requests.
For any property, the options are asc (ascending) and desc (descending).
For nulls, the options are first and last.
By default, lists are sorted by
createdAt in descending order. Relationships are not sorted.Relationships
You can sort by the properties of a related resource. For example, the following query sorts by the author’s email address:Relation aggregate value
Sort by the count of related resources with the_count property: