Steps to reproduce the issue:
- Go to Submissions table of an assignment
- Note: the default is sort by Group Name.
- Sort by Marking State by clicking on the column title
- Note: the arrow appears besides the column title
- Click on the Submissions tab to re-open the Submissions table
- Issue: table is sorted by Group Name as it's the default, but the UI indicator is still on the Marking State column. (See the screenshot below.)

Steps to reproduce the issue: