There are a few ways to retake the sorting hat quiz on wizarding world.
Harry potter legacy sorting hat quiz
How to retake sorting hat quiz
Sorting hat quiz for kids printable