Problem with get_movie function and test_get_comments

Hello everyone,
I’ve met a problem, can someone help me to fix this? So there is a function:

Looks like it works good, but there is an error during tests:

So there are problem with sorting as i understand, but i don’t know how to fix… Thinking around that i need to add smth like this:
‘$sort’: {
‘date’: -1
Thanks a lot for help!

loool, just fixed this by adding $sort in compas pipeline and exporting to Python3

but if someone will say how to fix it in another way, would be cool :slight_smile:

No other way. This is good.