Peace be upon you. According to Grand Ayatollah Khamenei and Grand Ayatollah Sistani, performing Ghusl by washing the head first, then the right side of the head and body together, followed by the left side of the head and body together does not invalidate the Ghusl. May you be successful in all good.