I've posted on the github page for the api that the results don't come in the order expected, there's two sort order that would bring it in the correct order: sort by ID or modified date.
Hello AlixG,
Thank you for your input. I'll make sure we take a look at it.