I need to pull a combined list of the 'X' latest pages and comments for a specific space sorted by creation date (for display within another intranet application).
The space and content type restriction is no problem but I'm having trouble with the descending sort by creation date.
Is this possible via the search API? I've looked through the documentation and haven't found a way to do this yet (although it's possible via the regular Confluence search UI).
At the moment it's looking like I'm going to have to resort to a raw SQL query against the Confluence DB but I'd like to avoid that if possible.