SELECT title, AVG(salary) FROM titles INNER JOIN salaries USING(emp_no) GROUP BY title ORDER BY AVG(salary);