There are a few ways to retake the sorting hat quiz on wizarding world. Web the sorting hat aspect of the game is essentially completed through pottermore and wizarding world, so players will need their accounts connected to wb.
Sorting hat quiz official
A sorting hat quiz
Harry potter pottermore sorting hat quiz