User blog comment:Rose Hunter/Hogwarts Houses/@comment-26958589-20160301120636/@comment-25954732-20160301133028

Actually, Hermione is in Gryffindor.

To be honest, it does work in terms of personality.

Yes, Neville is loyal, but he is also extremely brave: not everyone can stand up to Voldemort and survive. And, yeah, Hermione is intelligent, but who can deny her courage when under fire?

I think the Sorting Hat is able to tell these things about a person, even if they don't quite know it themselves.