Here is one sentence: His salary was determined by his rank and seniority.
Here is another sentence: The entrance was guarded by ranks of policemen.
Does the term rank mean the same thing in both these sentences?
different meanings