There are a few ways to retake the sorting hat quiz on wizarding world.
Harry potter which house quiz pottermore
What harry potter house am i quiz pottermore
Full house quiz pottermore