Effect
Ordered country with succession law
Iterate through all countries with a cached succession law (set cached = yes in the heir_selection to use this)
ordered_country_with_succession_law = {
limit = { <triggers> }
order_by = script_value
position = int
min = int
max = script_value
check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max
<effects> }