Original: The succession is regulated by the Act of Settlement 1701, the Royal Marriages Act 1772 and common law.
Simplified: Males come before females, and older children come before younger children.