Hey, you can add a sort
param to your query.
There’s some detail in the API docs, but I’ll share here too:
The sort parameter overrides the sorting of the view specified in the view parameter. If neither the sort nor the view parameter is included, the order of records is arbitrary.
For example, to sort records by Task Name in descending order, send these two query parameters:
sort%5B0%5D%5Bfield%5D=Task%20Name
sort%5B0%5D%5Bdirection%5D=desc
For example, to sort records by Task Name in descending order, pass in:
[{field: "Task Name", direction: "desc"}]