Sorted pages from the content delivery API
# help-with-umbraco
j
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
You should be able to use
?sort=sortOrder:asc/desc
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
I tried that but it failed. But I was missing the :asc part and now it seems to work. Thank you 🙂
3 Views