Assignment Grader Fixes

Made fixes to grader page - mainly sorting db.code so that the correct row gets used in grading