Implement sorting of exams

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