Marguerite was only the younger sister. Because of that, her older sisters' children should logically pass before her.
That's called primogeniture.
More practically, giving the throne to Marguerite would not solve the succession problem as she did not have any child and was probably barren...