Harry Potter came close to being sorted into Slytherin before he persuaded the Hat to sort him into Gryffindor.