Sort on title doesn't work in content API call

I’m trying to get back multiple items from my page model and sort them alphabetically using the content API’s sort query param, but it doesn’t seem to make any difference:

https://cdn.builder.io/api/v2/content/project-page?apiKey=2277cffef75f4fb1b3462607b91e7deb&limit=1000&sort.data.title=1

and

https://cdn.builder.io/api/v2/content/project-page?apiKey=2277cffef75f4fb1b3462607b91e7deb&limit=1000&sort.data.title=-1

and

https://cdn.builder.io/api/v2/content/project-page?apiKey=2277cffef75f4fb1b3462607b91e7deb&limit=1000

all return the same data in the same order.

Any idea what I’m doing wrong?

Hi @ersin we are in the process of updating our API infrastructure, and found that sort is currently not working on the latest beta API.

A small percentage of users were on this beta API, and I have gone ahead and submitted your apiKey to add you to the whitelist of users to stay on our current API . This should be working shortly, please try again later today or tomorrow

1 Like