MDL-31581 manual grading: improve usability

1. If sorting by student idnumber or name, sort multiple attempts by the
same student in attempt number order.

2. If showing both graded and ungraded attempts at questions, hilight
the ones that still need grading.