SERVER-12438 better handling of batchSize and limit with sort