I am using the Rest API to get content for my project. I have few different Custom types, some of them are repeatable but I'm having trouble sorting them because when I update a document the list changes its order and I want it to be fixed.
Can somebody help me to achieve this? Thanks.
Hello @alejo1997serna
Welcome to the Prismic community.
You can use the "orderings" parameters to sort your query results in a particular order. The orderings parameter orders the results by the specified field(s). You can specify as many fields as you want. You can order documents by their first or last publication dates.
Find more details in this document: Order your results in the REST API - Prismic.
Let me know if it still doesn't solve your question.
Thanks,
Priyanka
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.