There are a few ways to retake the sorting hat quiz on wizarding world.
Is the harry potter sorting hat quiz accurate
Harry potter sorting hat quiz which house are you
Sorting hat quiz pottermore