SERVER-11987 extended sort stage to be limit-aware