To grow in the career and get better salary depends of your manager and your peers. If the manager believe that your colleague deserves and you too, they can chose the he can promote based in their budged and not for merit of both.
The new hires many times start in the company getting same or more salary to the current employees with years of company.