There are a few ways to retake the sorting hat quiz on wizarding world. Delete your wizarding world account and create a new one.this is the only way to retake the quiz and get a different result.
Pottemore sorting hat quiz results
Harry potter sorting hat house quiz the almighty guru
The sorting hat quiz wizarding world