Original: However, in the line of succession to the British throne, Prince Carl Philip is ahead of his elder sister due to the UK operating male-preference primogeniture.
Simplified: However, because the UK still has male primogeniture (brothers inherit before sisters) Prince Carl Philip is ahead of his elder sister in the line of succession to the British throne.