Aggregations: The nested aggregator should iterate over the child doc ids in ascending order.

PR for #7505