In the Playground, everything seems to be correct but in the Python package when parsing with and without pagination, articles are parsed in the wrong order (more one the screenshots).
For example, the first article appears last or the last article appears first when parsing.
I'm using the latest version (2.4.1) and not using anything related to sorting.
A guess: this behavior might be caused by recent articles pagination bug fix.
Another guess was in the
if
statement:
if "next" in results.get("serpapi_pagination", [])
was somehow messing up the behavior, but even without pagination as said above, the article's order was out of order.