Charlotte comes before Louis? Maybe they changed it. Back in the day, the youngest son outranked the eldest daughter.
Yes that rule has been uh also tossed and now birth order not sex will determine where you end up in the succession but it only applies to births going forward from when the rule changed. Thus Princess Anne is still behind her younger brothers.
They changed the succession laws recently