She scoured the shelves looking for books that might help her understand the sorting magic, books that might help her understand the psychological side of magic and tried to find any reference to historical cases where students may have switched houses. 