gradinfo sort and previous courses on profile