Military officers take an oath to the obey Constitution, not the President.
Enlisted members, however, do swear to follow the orders of the President.
How can they swear to follow the orders of the President when Judge Denise Lind ruled that the President doesn’t issue any orders?