# If there is more than one branch in a hydrocarbon, which branch do you name first?

I have read that branches need to be named in alphabetical order, but I do not really understand this, or do you start with the branch closest to the edge of the hydrocarbon?

$$\ce{3-Bromo-4-chloro-butanamine}$$
$$\ce{RCOOH>RCOOR>RCOCOOR>RCOCl>RCONH2>RCHO>CO>OH>NH2>double bond>triple bond>halogen>NO2>ROR>alkyl}$$