Normally $sort uses the needsMerge flag to decide whether to return the sort key as metadata:
Presumably we will need to do the same thing for $_internalBoundedSort.
- depends on
SERVER-64349 Add heuristic-based planning support for bucket unpacking with sort
- is depended on by
SERVER-52286 Enable feature flag for Bucket unpacking with sorting