Turning Rental House To Primary Residence

Currently I live in Primary Residence 14 yrs - House #1
Rental of 14 yrs in same state in my personal name - House #2

I will be selling house #1 and moving back into house #2 making it the primary rental.

  1. Will moving into house #2 (making it the primary) 6 months before selling house #1 impact the $250,00 per person capital gain exclusion on the sale of the personal residence of House #1? IE: is there a tax advantage/disadvantage based on the “order” of selling House #1 and moving into House #2?

Note: House #2 has not been rented during the yr 2022 due to damage & subsequent renovations.