Assigning Cahn-Ingold-Prelog priority numbering rules for 2 groups
When you've reached the end of your first group (after resolving the double bond), you're next comparing no atom (on the ghost C connected to C2) to a hydrogen atom (on the 4-methyl group), and any atom has a higher priority than no atom, so your second group gets the higher priority.