mongdb need sorted dict for runcommand