Prioritizing the documents from two collections

Hi,

Please provide a dataset that represents your issue without any un-necessary fields and the expected output.
Without more details, I would say that you are looking for a sort stage at the end of your aggregation pipeline.

Cheers,
Maxime.