The length of the entire blockchain refers to the chain with the most combined difficulty, not the one with the most blocks.