This guide describes how list resources can be sorted.
List resources in the API can be sorted.By default, all list resources are sorted by created_at:desc.Our sort parameter accepts a single string value, or an array of strings:
Copy
Ask AI
GET https://dovetail.com/api/v1/projects?sort=created_at:ascGET https://dovetail.com/api/v1/projects?sort=created_at:asc&sort=title:ascGET https://dovetail.com/api/v1/projects?sort[]=created_at:asc&sort[]=title:ascGET https://dovetail.com/api/v1/projects?sort[0]=created_at:asc&sort[1]=title:asc