2 Answers
There’s a full article on Policy Evaluation Logic, which is worth understanding at the Specialty level. The general rules are "implicit deny", where anything that isn’t explicitly allowed in the policy will be denied, and "explicit deny overrides explicit allows", where even if you have multiple rules which would allow something to happen, a single explicit "deny" will override everything else.
The order of the statements in any IAM/resource-policy is irrelevant.
amazing explanation !!