[Layout] Assign ordinals in Resolution order.