Queries with a sort cause this invariant failure in mqlrun:
> mqlrun.exe!mongo::invariantFailed(const char * expr, const char * file, unsigned int line) Line 104 C++ [Inline Frame] mqlrun.exe!mongo::invariantWithLocation(const bool &) Line 69 C++ mqlrun.exe!mongo::WorkingSetMember::transitionToOwnedObj() Line 122 C++ mqlrun.exe!mongo::PipelineProxyStage::doWork(unsigned __int64 * out) Line 91 C++ mqlrun.exe!mongo::PlanStage::work(unsigned __int64 * out) Line 47 C++ mqlrun.exe!mongo::PlanExecutorImpl::_getNextImpl(mongo::Snapshotted<mongo::BSONObj> * objOut, mongo::RecordId * dlOut) Line 531 C++ mqlrun.exe!mongo::PlanExecutorImpl::getNext(mongo::BSONObj * objOut, mongo::RecordId * dlOut) Line 382 C++ mqlrun.exe!mongo::mqlrunMain(const char * pipelineStr, const char * fileName, mongo::OutputType outputType, const char * tempDir) Line 264 C++ mqlrun.exe!main(int argc, char * * argv, char * * envp) Line 377 C++