Choosing Your Hogwarts House: How the Sorting Hat Takes Your Preference into Account