In the sorting ceremony at Hogwarts, Hermione Granger is the first among the main characters to be sorted into Gryffindor. Harry Potter is famously the last to be sorted in the ceremony, while Ron Weasley is sorted before Harry. Draco Malfoy is sorted into Slytherin earlier in the ceremony.