Find the name of the students and their department names sorted by their total credits in ascending order.
select name, dept_name from student order by tot_cred