I have short legs and a long torso, so it really depends on how I want to set up a bike.
If I want a higher handlebar, I'd fit by reach/top tube like some advise. If I want any kind of reasonable saddle to bar drop, which will still be less than 3" with a slammed -17 stem, I have to pick based on stack height like many pros do.