There are a few ways to retake the sorting hat quiz on wizarding world.
Pottermore website house quiz
Pottermore house jk rowling quiz
Discover your hogwarts house quiz pottermore