Quick search by citation:

33 U.S. Code § 3062 - Relative rank of officers when serving with Army, Navy, or Air Force

When serving with the Army, Navy, or Air Force, an officer of the Administration shall rank with and after officers of corresponding grade in the Army, Navy, or Air Force of the same length of service in grade. Nothing in this subchapter shall be construed to affect or alter an officer’s rates of pay and allowances when not assigned to military duty.

Editorial Notes
Prior Provisions

Provisions similar to those in this section were contained in section 856 of this title prior to repeal by Pub. L. 107–372.