allie had found her sleeping over her homework at a nearby starbucks , and was quick to discover that miranda was somewhat narcoleptic-that is to say , she fell asleep at the most inopportune times , probably because she stayed up all hours of the night , much like allie used to .