Yeah, I know that is is determined by which trait is <PermanentTrait>, but in both cases in the game where it is used then the permanent trait is the first one. The order has not changed since it was hardcoded.
(I really wish you could set each trait as permanent or not in the leaderheads file instead of just having this tag. It is annoying when I try to play giving every leader an extra trait.)