10 USC 5508 - Rank of line and staff corps officers of the Navy and officers of the Marine Corps

Except for an officer entitled to a rank higher than his grade, line and staff corps officers of the Navy serving in the same grade and officers of the Marine Corps serving in the corresponding grade rank among themselves according to their respective dates of rank in grade whether or not they are on an active-duty list.