Actually it's correct that Nunnally is 87th in line to the throne. But in general the line of succession doesn't matter that much since there's always internal squabble over who will succeed to throne. The strongest becomes Emperor generally speaking. Lelouch is the one who's 17th in line.