From Bouvier's Law Dictionary, Revised 6th Ed (1856) :
RANK. The order or place in which certain officers are placed in the army and navy, in relation to others, is called their rank. 2. It is a maxim, that officers of, an inferior rank are bound to obey all the lawful commands of their superiors, and are justified for such obedience.