What are the names of students and their respective departments, ordered by number of credits from least to greatest?
select name, dept_name from student order by tot_cred