There are a few ways to retake the sorting hat quiz on wizarding world.
The guardian sorting hat quiz
Sorting hat go to quiz
Warner brothers harry potter sorting hat quiz