Fix ordering.
Create 'submitted_average' on Assignment.

Closes #369.