SERVER-10026 fix size accounting in sort