Surfing etiquette

Hi
I am a little confused to the surfing etiquette of who has the right of wave. Is it the first person who gets up on the board or the person left of them?
I hate to piss someone off whilst practising.
Thanks guys
I am a little confused to the surfing etiquette of who has the right of wave. Is it the first person who gets up on the board or the person left of them?
I hate to piss someone off whilst practising.
Thanks guys