Added sorting to exams grid