Overview
The order of precedence in the United Kingdom is the sequential hierarchy for Peers of the Realm, officers of state, senior members of the clergy, holders of the various Orders of Chivalry, and is mostly determined, but not limited to, birth order, place in the line of succession, or distance from the reigning monarch. The order of precedence can also be applied to other persons in the three legal jurisdictions within the United Kingdom:
England and Wales
Scotland
Northern Ireland
Separate orders exist for males and females.
Determination of precedence
The order of precedence is determined by various methods. The Precedence Act (which technically applies only to determine seating in the House of Lords Chamber) and the Acts of Union with Scotland and Ireland generally set precedence for members of the nobility. The statutes of the various Orders of Chivalry set precedence for their members. In other cases, precedence may be decided by the sovereign's order, by a Royal Warrant of Precedence, by letters patent, by Acts of Parliament, or by custom.
Source of precedence
One may acquire precedence for various reasons. Firstly, one may be an office-holder. Secondly, one may be of a particular degree such as duke. Thirdly, in the case of women, one may be the wife of a title-holder (note that wives acquire precedence due to their husbands, but husbands do not gain any special precedence due to their wives). Finally, one may be the son or daughter of a title-holder.
From Wikipedia (CC BY-SA 4.0).