Implement sorting of Exams and show headers to each group

Signed-off-by: Frca <killerfrca@gmail.com>