Hi Jack,
the driver passes on the aggregation pipeline to the server and is not involved in the evaluation of it, so I’m guessing this would be a server change.
A quick test on my machine using the $documents stage as input did not reveal any differences between 7.0.9 and 8.0.3, but I may be missing something.
If you are relying on the correct order, I recommend using the includeArrayIndex option for $unwind to get the index of each element added to the document, then sorting on that for consistent ordering.