In the world of Harry Potter, the centuries-old Sorting Hat determines which of the four houses of Hogwarts each student belongs to, based on their personalities and values. However, as Dumbledore once implied in Harry Potter and the Deathly Hallows, it has definitely made errors of judgment a handful of times.