I'm using the REST API, following endpoint:
/rest/api/content/search
And trying a CQL like this:
(type IN (blogpost) and space = AP) order by created desc
but I'm getting very weird results ordering by the created field.
For example I update one blog post and the results I get change which I'm not expecting since I'm thinking creation date = creation date of the post and edits to it don't update that field.
From the raw data it seems there is a creation date that works as I expect but the ordering doesn't seem to be working.
I was trying to follow what is here: https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/
So, how should I order by creation date of a blog post?