Hi. Is it posssible in some way to get the pages from the API in a sorted order?
We have sorted the pages manually in the backoffice but the order from the API is different.
I can't see any sortOrder property on the pages either so that I can sort the result myself.
Any ideas?
s
Steven (he/him)
11/22/2024, 1:26 PM
You should be able to use
?sort=sortOrder:asc/desc
Steven (he/him)
11/22/2024, 1:27 PM
I noticed that sortOrder is not on the objects returned by the API, but it is there in the index, so sorting by it still works
j
Josef Henryson
11/22/2024, 1:53 PM
I tried that but it failed. But I was missing the :asc part and now it seems to work. Thank you 🙂