Nobles
Nobles rank in the following order: dukes, marquesses, earls, viscounts, and barons. Within each degree, peers rank according to the seniority of the creation of their peerages, but peers of England (created prior to 1707) precede peers of Scotland (prior to 1707), who together precede peers of Great Britain (prior to 1801), who together precede peers of Ireland (prior to 1801), who together precede peers of Ireland or of the United Kingdom (after 1801). However, the rules regarding the country of peerage apply only within particular ranks; an earl of England, for instance, would outrank an earl of the United Kingdom, but not a marquis of the United Kingdom.
Wives of peers rank along with peeresses in their own right according to the ancientcy of the peerage (subject to the rules regarding countries mentioned above), whether it is the ancientcy of the peeress' own peerage or of her husband's peerage. However, a dowager peeress (the wife of a former holder of that title and usually an ancestress of the present title-holder) would always precede the present peeress. Thus, the Dowager Duchess of X would come before the present Duchess of X.
Read more about this topic: Orders Of Precedence In The United Kingdom