Convert assignment grades to OrderedDict