Clemens 's deal tied outfielders Sammy Sosa and Barry Bonds for the fourth-highest average salary in the major leagues .